• 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

method init V not found ?

 
Ranch Hand
Posts: 72
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 -
 
author and iconoclast
Posts: 24207
46
Mac OS X Eclipse IDE Chrome
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 -
 
reply
    Bookmark Topic Watch Topic
  • New Topic