This week's book giveaway is in the Design forum.
We're giving away four copies of Design for the Mind and have Victor S. Yocco on-line!
See this thread for details.
Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

method init V not found ?

 
Thomas Rochon
Ranch Hand
Posts: 72
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi there !
today I tried to start a java application.
I have Java2SDK1.4.1 installed at c:\ and the application directory
at d:\ (don't know if that matters). I set the JAVA_HOME to the
corresponding path.
But every time I try to start the application the console shows
following error message:
Exception in thread "main" java.lang.NoSuchMethodError:
com.sun.tools.javac.v8.util.Log: method <init><>V not found
at gate.util.java$MemoryLog.<init>(Javac.java:38)
at gate.util.Javac.loadClasses(Javac.java:152)
at gate.jape.SinglePhaseTransducer.finish(SinglePahseTransducer.java:110))
a.s.o.
If the code would have been written by myself, it would be most likely that the problem is somewhere in the application. But that application is something professional and it seems like it's running fine every else.
Do you have an idea what the problem is?
Thanx - Thomas -
 
Ernest Friedman-Hill
author and iconoclast
Marshal
Pie
Posts: 24208
35
Chrome Eclipse IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The class "com.sun.tools.javac.v8.util.Log" is part of an implementation of Sun's Java compiler "javac." Your application was compiled against one particular version of this class, and apparently you're trying to run it using a different version from which this method (a no-argument constructor) is missing.
Sun has repeatedly stated that the classes in com.sun.* are not part of the public Java API, and that they are subject to sudden, unannounced change. If you write code that uses them, your code may break if it's used with a different version of the JDK than it was compiled against. That's what's happened here.
To fix the problem, you'll need to use the exact same version of the JDK that the program was compiled against. See the program's documentation -- it most likely tells you the required version.
[ August 11, 2003: Message edited by: Ernest Friedman-Hill ]
 
Thomas Rochon
Ranch Hand
Posts: 72
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you for the reply!
You really helped me a lot!
I will check that tomorrow.
Thanx and bye !
- Thomas -
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic