Skip to contentSkip to conversation

where is javac on the target

meta-java Gary Thomas 2 participants 5 messages Nov 5, 2015

lore
Share & tools
lore
#0 lore raw

I tried running the java-test-image from this layer and found lots of .java files, but no javac compiler.

Looking at the recipe for openjdk-7-jre I can see javac built, but it doesn't seem to be packaged.

Am I missing something? How can I get the java compiler on my target?

Thanks

Signature · 4 lines
------------------------------------------------------------
Gary Thomas                 |  Consulting for the
MLB Associates              |    Embedded world
------------------------------------------------------------
#1 lore raw

Hi,
it should be included in the openjdk-7-jdk package.

kind regards,
Richard L

Quoted 11 lines · Gary Thomas

I tried running the java-test-image from this layer and found lots of .java files, but no javac compiler.

Looking at the recipe for openjdk-7-jre I can see javac built, but it doesn't seem to be packaged.

Am I missing something? How can I get the java compiler on my target?

Thanks

#2 lore raw
Quoted 2 lines · Richard Leitner

Hi,
it should be included in the openjdk-7-jdk package.

Thanks, that helped. Perhaps that package should be included in the java-test-image?

I now have the compiler on my unit, but I'm still having issues trying to run the examples. Here's what I tried:

# cd /usr/share/classpath/examples/gnu/classpath/examples/awt
# javac Demo.java
Demo.java:1160: error: cannot find symbol
    AnimationApplet a;
    ^
  symbol:   class AnimationApplet
  location: class AnimationWindow
Demo.java:1176: error: cannot find symbol
      a = new AnimationApplet();
              ^
  symbol:   class AnimationApplet
  location: class AnimationWindow
# ls -l
-rw-r--r-- 1 root root 33395 Nov  4 13:16 AicasGraphicsBenchmark.java
-rw-r--r-- 1 root root  6713 Nov  4 13:16 AnimationApplet.java
-rw-r--r-- 1 root root 29728 Nov  4 13:16 Demo.java
-rw-r--r-- 1 root root 12595 Nov  4 13:16 HintingDemo.java

Any hints on how I move forward?

Note: I'm not experienced with java, just trying to set this up for someone else :-)

Quoted 12 lines · Gary Thomas
Quoted 11 lines

I tried running the java-test-image from this layer and found lots of .java files, but no javac compiler.

Looking at the recipe for openjdk-7-jre I can see javac built, but it doesn't seem to be packaged.

Am I missing something? How can I get the java compiler on my target?

Thanks

Signature · 4 lines
------------------------------------------------------------
Gary Thomas                 |  Consulting for the
MLB Associates              |    Embedded world
------------------------------------------------------------
#3 lore raw
Quoted 6 lines · Gary Thomas
Quoted 2 lines · Richard Leitner

Hi,
it should be included in the openjdk-7-jdk package.

Thanks, that helped. Perhaps that package should be included in the java-test-image?

Good idea ;-)
Do you want to send a patch for that? Or should I do it?

Quoted 22 lines

I now have the compiler on my unit, but I'm still having issues trying to run the examples. Here's what I tried:

# cd /usr/share/classpath/examples/gnu/classpath/examples/awt
# javac Demo.java
Demo.java:1160: error: cannot find symbol
    AnimationApplet a;
    ^
  symbol:   class AnimationApplet
  location: class AnimationWindow
Demo.java:1176: error: cannot find symbol
      a = new AnimationApplet();
              ^
  symbol:   class AnimationApplet
  location: class AnimationWindow
# ls -l
(quoted diff) +0 -4
-rw-r--r-- 1 root root 33395 Nov  4 13:16 AicasGraphicsBenchmark.java
-rw-r--r-- 1 root root  6713 Nov  4 13:16 AnimationApplet.java
-rw-r--r-- 1 root root 29728 Nov  4 13:16 Demo.java
-rw-r--r-- 1 root root 12595 Nov  4 13:16 HintingDemo.java
Quoted 4 lines

Any hints on how I move forward?

Note: I'm not experienced with java, just trying to set this up for someone else :-)

Sorry, I haven't done anything with the examples (yet). Maybe somebody else can help?

kind regards,
Richard L

#4 lore raw
Quoted 10 lines · Richard Leitner
Quoted 6 lines · Gary Thomas
Quoted 2 lines · Richard Leitner

Hi,
it should be included in the openjdk-7-jdk package.

Thanks, that helped. Perhaps that package should be included in the java-test-image?

Good idea ;-)
Do you want to send a patch for that? Or should I do it?

I'll send a patch soon, once I get all of this working.

Quoted 34 lines
Quoted 23 lines

I now have the compiler on my unit, but I'm still having issues trying to run the examples. Here's what I tried:

# cd /usr/share/classpath/examples/gnu/classpath/examples/awt
# javac Demo.java
Demo.java:1160: error: cannot find symbol
     AnimationApplet a;
     ^
   symbol:   class AnimationApplet
   location: class AnimationWindow
Demo.java:1176: error: cannot find symbol
       a = new AnimationApplet();
               ^
   symbol:   class AnimationApplet
   location: class AnimationWindow
# ls -l
(quoted diff) +0 -4
-rw-r--r-- 1 root root 33395 Nov  4 13:16 AicasGraphicsBenchmark.java
-rw-r--r-- 1 root root  6713 Nov  4 13:16 AnimationApplet.java
-rw-r--r-- 1 root root 29728 Nov  4 13:16 Demo.java
-rw-r--r-- 1 root root 12595 Nov  4 13:16 HintingDemo.java
Quoted 4 lines

Any hints on how I move forward?

Note: I'm not experienced with java, just trying to set this up for someone else :-)

Sorry, I haven't done anything with the examples (yet). Maybe somebody else can help?

kind regards,
Richard L

Signature · 4 lines
------------------------------------------------------------
Gary Thomas                 |  Consulting for the
MLB Associates              |    Embedded world
------------------------------------------------------------