File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to set java home in unicode folder

 
Bill Thompson
Greenhorn
Posts: 5
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello Everyone,

When I set the java home environment variable with unicode, I am not able to compile any of the java files. It is throwing NoClassDefFoundError, why is this so....

I have followed the following steps(in Windows OS)

1. Copied the JDK in an Unicode folder (用状況使用\java\jdk1.5.0_14)
2. Set the JAVA_HOME environment variable as 用状況使用\java\jdk1.5.0_14
3. Written a simple HelloWorld.java program
4. Tried to compile the HelloWorld program and got the exception saying
Exception in thread "main" java.lang.NoClassDefFoundError: com/sun/tools/javac/Main


Can anybody suggest what the exact problem is.....
 
Campbell Ritchie
Sheriff
Pie
Posts: 47289
52
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Where are you putting your classes? They belong in their own folder, not inside a JVM folder. Please don't put anything inside a JVM folder.

If that is the only error you are getting, it is because the folder your command line is navigated to and the location of the compiled class are different. Or the name of the class you are trying to invoke is misspelt.
 
Bill Thompson
Greenhorn
Posts: 5
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello Ritchie,

Thanks for the response. I have kept the Java class away from the JVM folder. My sample java program kept under C:\ drive where as JAVA_HOME set as 用状況使用\java\jdk1.5.0_14.

Thanks,
Bill
 
Campbell Ritchie
Sheriff
Pie
Posts: 47289
52
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You're welcome. Has that sorted it out?
 
Bill Thompson
Greenhorn
Posts: 5
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It did not solve the problem...still googling to find an answer.
 
Campbell Ritchie
Sheriff
Pie
Posts: 47289
52
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Bill Thompson:
It did not solve the problem...still googling to find an answer.


I can tell you where you will find an answer. Try here.

Please give us more details about what the error messages are, and what you are doing to precipitate them, then we can help better.

And I suggest Ernest or Rob transfer this topic to beginners'.
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic