* Fwd: GCJ version 4.3.3 (gcc --enable-languages) error : The import acm cannot be resolved
[not found] <x2s265e999a1005070200lbf77e246m139c67911dadffd2@mail.gmail.com>
@ 2010-05-07 9:05 ` Malik Benkirane
2010-05-07 9:15 ` Andrew Haley
0 siblings, 1 reply; 2+ messages in thread
From: Malik Benkirane @ 2010-05-07 9:05 UTC (permalink / raw)
To: java
Hello,
Here is the program i wish compile with gcj :
>
> import acm.graphics.*;
>
> import acm.program.GraphicsProgram;
>
> public class myfirstgraphics extends GraphicsProgram {
>
> public void run() {
>
> add(new GLabel("hello, world", 100, 100));
>
> }
>
> }
Here is the files in the directory from where i'm running gcj :
> acm.jar myfirstgraphics.java
But even if I specify CLASSPATH ... i always get same errors :
$> CLASSPATH=. gcj --main=myfirstgraphics -o test myfirstgraphics.java
>
> myfirstgraphics.java:2: error: The import acm cannot be resolved
>
> import acm.graphics.*;
> ^^^
>
> myfirstgraphics.java:3: error: The import acm cannot be resolved
>
> import acm.program.GraphicsProgram;
> ^^^
>
> myfirstgraphics.java:5: error: GraphicsProgram cannot be resolved to a type
>
> public class myfirstgraphics extends GraphicsProgram
> ^^^^^^^^^^^^^^^
>
> myfirstgraphics.java:9: error: GLabel cannot be resolved to a type
>
> add(new GLabel("hello, world", 100, 100));
> ^^^^^^
>
> 4 problems (4 errors)
>
I really need your help for resolving this problem because JVM is too
slow on my machine. Thank you !
Malik
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Fwd: GCJ version 4.3.3 (gcc --enable-languages) error : The import acm cannot be resolved
2010-05-07 9:05 ` Fwd: GCJ version 4.3.3 (gcc --enable-languages) error : The import acm cannot be resolved Malik Benkirane
@ 2010-05-07 9:15 ` Andrew Haley
0 siblings, 0 replies; 2+ messages in thread
From: Andrew Haley @ 2010-05-07 9:15 UTC (permalink / raw)
To: Malik Benkirane; +Cc: java
On 05/07/2010 10:05 AM, Malik Benkirane wrote:
> Hello,
>
> Here is the program i wish compile with gcj :
>
>>
>> import acm.graphics.*;
>>
>> import acm.program.GraphicsProgram;
>>
>> public class myfirstgraphics extends GraphicsProgram {
>>
>> public void run() {
>>
>> add(new GLabel("hello, world", 100, 100));
>>
>> }
>>
>> }
>
> Here is the files in the directory from where i'm running gcj :
>
>> acm.jar myfirstgraphics.java
>
> But even if I specify CLASSPATH ... i always get same errors :
> $> CLASSPATH=. gcj --main=myfirstgraphics -o test myfirstgraphics.java
You have to include jarfiles in the classpath. This is true, AFAIK, for
every java compiler.
CLASSPATH=.:acm.jar gcj --main=myfirstgraphics -o test myfirstgraphics.java --main=myfirstgraphics
Andrew.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2010-05-07 9:15 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <x2s265e999a1005070200lbf77e246m139c67911dadffd2@mail.gmail.com>
2010-05-07 9:05 ` Fwd: GCJ version 4.3.3 (gcc --enable-languages) error : The import acm cannot be resolved Malik Benkirane
2010-05-07 9:15 ` Andrew Haley
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).