NoClassDefFoundError: com/sun/tools/javac/Main

View: New views
3 Messages — Rating Filter:   Alert me  

NoClassDefFoundError: com/sun/tools/javac/Main

by Ittay Dror :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,


I'm trying to compile a java module and the title is the error I get.
The machine is x86_64 with a 64bit java.


I can see that tools.jar is in the classpath when the JVM is loaded and
that it contains com/sun/tools/javac/Main com/sun/tools/javac/Main.class


Any help is appreciated,

Ittay


--
--
Ittay Dror <ittay.dror@...>



Re: NoClassDefFoundError: com/sun/tools/javac/Main

by Alex Boisvert-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Try the following to determine where Buildr is expecting tools.jar to be
located:

boisvert@boog:~$ irb
irb(main):001:0> require 'rubygems'
=> true
irb(main):002:0> require 'buildr'
=> true
irb(main):003:0> Java.tools_jar
=> "/opt/boisvert/jdk1.6.0_10/lib/tools.jar"

alex


On Sun, Dec 28, 2008 at 4:59 AM, Ittay Dror <ittay.dror@...> wrote:

> Hi,
>
>
> I'm trying to compile a java module and the title is the error I get. The
> machine is x86_64 with a 64bit java.
>
>
> I can see that tools.jar is in the classpath when the JVM is loaded and
> that it contains com/sun/tools/javac/Main com/sun/tools/javac/Main.class
>
>
> Any help is appreciated,
>
> Ittay
>
>
> --
> --
> Ittay Dror <ittay.dror@...>
>
>
>

Re: NoClassDefFoundError: com/sun/tools/javac/Main

by Ittay Dror-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

thanks. i already found a solution (my own fault, hacking rjb). sorry
for the noise (i still didn't receive my own message or i would have
replied to it)


ittay


Alex Boisvert wrote:

> Try the following to determine where Buildr is expecting tools.jar to be
> located:
>
> boisvert@boog:~$ irb
> irb(main):001:0> require 'rubygems'
> => true
> irb(main):002:0> require 'buildr'
> => true
> irb(main):003:0> Java.tools_jar
> => "/opt/boisvert/jdk1.6.0_10/lib/tools.jar"
>
> alex
>
>
> On Sun, Dec 28, 2008 at 4:59 AM, Ittay Dror <ittay.dror@...> wrote:
>
>  
>> Hi,
>>
>>
>> I'm trying to compile a java module and the title is the error I get. The
>> machine is x86_64 with a 64bit java.
>>
>>
>> I can see that tools.jar is in the classpath when the JVM is loaded and
>> that it contains com/sun/tools/javac/Main com/sun/tools/javac/Main.class
>>
>>
>> Any help is appreciated,
>>
>> Ittay
>>
>>
>> --
>> --
>> Ittay Dror <ittay.dror@...>
>>
>>
>>
>>    
>
>  

--
Ittay Dror <ittayd@...>
Tikal <http://www.tikalk.com>
Tikal Project <http://tikal.sourceforge.net>