aspose file tools*
The moose likes Beginning Java and the fly likes method init V not found ? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "method init V not found ?" Watch "method init V not found ?" New topic
Author

method init V not found ?

Thomas Rochon
Ranch Hand

Joined: Jul 11, 2002
Posts: 72
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

Joined: Jul 08, 2003
Posts: 24166
    
  30

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 ]

[Jess in Action][AskingGoodQuestions]
Thomas Rochon
Ranch Hand

Joined: Jul 11, 2002
Posts: 72
Thank you for the reply!
You really helped me a lot!
I will check that tomorrow.
Thanx and bye !
- Thomas -
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: method init V not found ?
 
Similar Threads
Struts modules does not work!
servlet-mapping
cannot see index.jsp in struts
Resin 3 Forms Authentication
Cramming for solving a java problem