Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Source doesn't compile with openjdk-6 #1

Open
pvbiesen opened this issue Feb 5, 2012 · 2 comments
Open

Source doesn't compile with openjdk-6 #1

pvbiesen opened this issue Feb 5, 2012 · 2 comments

Comments

@pvbiesen
Copy link

pvbiesen commented Feb 5, 2012

Java version:
java version "1.6.0_24"
OpenJDK Runtime Environment (IcedTea6 1.11pre) (6b24~pre2-1)
OpenJDK Server VM (build 20.0-b12, mixed mode)

OS:
Debian testing i386
Linux 3.1.0-1-686-pae #1 SMP Fri Dec 23 19:59:41 UTC 2011 i686 GNU/Linux

Trace :
javac -cp lib src/be/geek/smajava/*
Inverter.java:10: package javax.microedition.io does not exist
import javax.microedition.io.Connector;
^
Inverter.java:11: package javax.microedition.io does not exist
import javax.microedition.io.StreamConnection;
^
Inverter.java:112: cannot find symbol
symbol : class StreamConnection
location: class be.geek.smajava.Inverter
StreamConnection connection = (StreamConnection) Connector.open(getConnectionURL());
^
Inverter.java:112: cannot find symbol
symbol : class StreamConnection
location: class be.geek.smajava.Inverter
StreamConnection connection = (StreamConnection) Connector.open(getConnectionURL());
^
Inverter.java:112: cannot find symbol
symbol : variable Connector
location: class be.geek.smajava.Inverter
StreamConnection connection = (StreamConnection) Connector.open(getConnectionURL());
^
5 errors

Googling for the error brings me to following statement :

No javax.microedition.io in a J2SE compatible jvm/classpath environment.

Apparently javax.microedition is SUN Java specific and not included in the J2SE specification. Is this correct ?

Kindest regards,

Peter.

@g3ek
Copy link
Owner

g3ek commented Feb 5, 2012

Yes, I always use the implementation from Sun. Errr. Oracle. ;-)

On 02/05/2012 05:26 PM, pvbiesen wrote:

Java version:
java version "1.6.0_24"
OpenJDK Runtime Environment (IcedTea6 1.11pre) (6b24~pre2-1)
OpenJDK Server VM (build 20.0-b12, mixed mode)

OS:
Debian testing i386
Linux 3.1.0-1-686-pae #1 SMP Fri Dec 23 19:59:41 UTC 2011 i686 GNU/Linux

Trace :
javac -cp lib src/be/geek/smajava/*
Inverter.java:10: package javax.microedition.io does not exist
import javax.microedition.io.Connector;
^
Inverter.java:11: package javax.microedition.io does not exist
import javax.microedition.io.StreamConnection;
^
Inverter.java:112: cannot find symbol
symbol : class StreamConnection
location: class be.geek.smajava.Inverter
StreamConnection connection = (StreamConnection) Connector.open(getConnectionURL());
^
Inverter.java:112: cannot find symbol
symbol : class StreamConnection
location: class be.geek.smajava.Inverter
StreamConnection connection = (StreamConnection) Connector.open(getConnectionURL());
^
Inverter.java:112: cannot find symbol
symbol : variable Connector
location: class be.geek.smajava.Inverter
StreamConnection connection = (StreamConnection) Connector.open(getConnectionURL());
^
5 errors

Googling for the error brings me to following statement :

No javax.microedition.io in a J2SE compatible jvm/classpath environment.

Apparently javax.microedition is SUN Java specific and not included in the J2SE specification. Is this correct ?

Kindest regards,

Peter.


Reply to this email directly or view it on GitHub:
#1

@pvbiesen
Copy link
Author

pvbiesen commented Feb 5, 2012

Please note that :

  1. java is no longer open source and will no longer be included in
    distributions like debian or ubuntu
  2. oracle has designated openjdk the new RI ( Reference Implementation ) of
    the java specification

Please don't make your library depend on non-open source applications.

Kindest regards,

Peter.
On Feb 5, 2012 8:24 PM, "g3ek" <
[email protected]>
wrote:

Yes, I always use the implementation from Sun. Errr. Oracle. ;-)

On 02/05/2012 05:26 PM, pvbiesen wrote:

Java version:
java version "1.6.0_24"
OpenJDK Runtime Environment (IcedTea6 1.11pre) (6b24~pre2-1)
OpenJDK Server VM (build 20.0-b12, mixed mode)

OS:
Debian testing i386
Linux 3.1.0-1-686-pae #1 SMP Fri Dec 23 19:59:41 UTC 2011 i686 GNU/Linux

Trace :
javac -cp lib src/be/geek/smajava/*
Inverter.java:10: package javax.microedition.io does not exist
import javax.microedition.io.Connector;
^
Inverter.java:11: package javax.microedition.io does not exist
import javax.microedition.io.StreamConnection;
^
Inverter.java:112: cannot find symbol
symbol : class StreamConnection
location: class be.geek.smajava.Inverter
StreamConnection connection = (StreamConnection)
Connector.open(getConnectionURL());
^
Inverter.java:112: cannot find symbol
symbol : class StreamConnection
location: class be.geek.smajava.Inverter
StreamConnection connection = (StreamConnection)
Connector.open(getConnectionURL());
^
Inverter.java:112: cannot find symbol
symbol : variable Connector
location: class be.geek.smajava.Inverter
StreamConnection connection = (StreamConnection)
Connector.open(getConnectionURL());
^
5 errors

Googling for the error brings me to following statement :

No javax.microedition.io in a J2SE compatible jvm/classpath environment.

Apparently javax.microedition is SUN Java specific and not included in
the J2SE specification. Is this correct ?

Kindest regards,

Peter.


Reply to this email directly or view it on GitHub:
#1


Reply to this email directly or view it on GitHub:
#1 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants