UnsupportedEncodingException

182 views
Skip to first unread message

Yohan Hale

unread,
Dec 20, 2011, 9:17:50 AM12/20/11
to omnetpp
I compiled under Windows XP. When I try to create new empty project,
it reported "CoreException".
I checked the log, and found that there's
UnsupportedEncodingException.
There's charsets.jar in JRE/lib of my system. But not in ide\jre\lib
of omnetpp.
I try to copy it, but the IDE even can't startup.
So is there any solutions? Thank you ~

Here is the log ( trimmed ):

!SESSION 2011-12-20 21:34:53.984
-----------------------------------------------
eclipse.buildId=unknown
java.version=1.6.0_26
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=zh_CN
Command-line arguments: -os win32 -ws win32 -arch x86

!ENTRY org.omnetpp.main 1 0 2011-12-20 21:35:00.171
!MESSAGE OMNeT++ IDE 4.2.0.111116-7631e2d started.

!ENTRY org.eclipse.cdt.core 4 0 2011-12-20 21:35:14.156
!MESSAGE Unable to load project template. Location URL is null for
org.omnetpp.cdt.templates.EmptyMake
!STACK 0
org.eclipse.cdt.core.templateengine.TemplateInitializationException:
Unable to load project template. Location URL is null for
org.omnetpp.cdt.templates.EmptyMake
at
org.eclipse.cdt.core.templateengine.TemplateCore.<init>(TemplateCore.java:
79)
at
org.eclipse.cdt.core.templateengine.TemplateCore.getTemplate(TemplateCore.java:
233)
......
org.eclipse.core.runtime.CoreException:
at
org.omnetpp.common.project.ProjectUtils.getBytesForFile(ProjectUtils.java:
277)
at
org.omnetpp.common.wizard.ContentTemplate.createTemplatedFile(ContentTemplate.java:
465)
at
org.omnetpp.common.wizard.ContentTemplate.createTemplatedFile(ContentTemplate.java:
406)
at
org.omnetpp.common.wizard.FileBasedContentTemplate.copyFiles(FileBasedContentTemplate.java:
496)
at
org.omnetpp.common.wizard.FileBasedContentTemplate.performFinish(FileBasedContentTemplate.java:
447)
at
org.omnetpp.cdt.wizard.FileBasedProjectTemplate.performFinish(FileBasedProjectTemplate.java:
77)
at org.omnetpp.common.wizard.TemplateBasedWizard
$1.execute(TemplateBasedWizard.java:292)
at org.eclipse.ui.actions.WorkspaceModifyOperation
$1.run(WorkspaceModifyOperation.java:106)
at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:
2344)
at
org.eclipse.ui.actions.WorkspaceModifyOperation.run(WorkspaceModifyOperation.java:
118)
at org.eclipse.jface.operation.ModalContext
$ModalContextThread.run(ModalContext.java:121)
Caused by: java.io.UnsupportedEncodingException: GBK
at java.lang.StringCoding.encode(Unknown Source)
at java.lang.String.getBytes(Unknown Source)
at
org.omnetpp.common.project.ProjectUtils.getBytesForFile(ProjectUtils.java:
274)
... 10 more

Yohan Hale

unread,
Dec 20, 2011, 10:27:25 AM12/20/11
to omnetpp
BTW: I can change Eclipse Workspace encoding setting to bypass this
problem.
But I want to know if I can add other charsets into omnetpp?

Rudolf Hornig

unread,
Dec 20, 2011, 10:31:31 AM12/20/11
to omn...@googlegroups.com
Omnet does support only ascii and UTF-8. No other char encodings are not supported.


--
Sent from the OMNeT++ mailing list. To configure your membership,
visit http://groups.google.com/group/omnetpp

Reply all
Reply to author
Forward
0 new messages