• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

How to set java home in unicode folder

 
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.....
 
Marshal
Posts: 79177
377
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
Marshal
Posts: 79177
377
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You're welcome. Has that sorted it out?
 
Bill Thompson
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
It did not solve the problem...still googling to find an answer.
 
Campbell Ritchie
Marshal
Posts: 79177
377
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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'.
 
This parrot is no more. It has ceased to be. Now it's a tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic