Talk About Network



Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Java Machine > Tried to enable...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 1 Topic 798 of 803
Post > Topic >>

Tried to enable nio.* in IBM J9 but...

by "Tobias Ginzler" <tobias.ginzler@[EMAIL PROTECTED] > Feb 5, 2008 at 05:06 PM

Hello all,

i tried to get the java.nio.* package working under the IBM J9 VM. As I am

dependent on the CDC-Version of J9, it does not come with the nio-package
by 
default. I thought this should be no problem to enable it by including a 
nio.jar in the classpath and importing it. All went fine. I told Eclipse
to 
include the jar (I got it from the Apache harmony project), attached the 
source and the integration was working in Eclipse. Compilation of my test 
class using nio was successful.

Then executing my example class throws a exception:
"java.lang.SecurityException: java.nio.charset.Charset - protected system 
package 'java.nio.charset'"

Ok, no problem - I moved the import of the nio-files to the system library

section (Installed JREs->Edit in Eclipse).

But then J9 appearently does not load the nio-classes any more:

Exception in thread "main" java.lang.NoClassDefFoundError: 
java.nio.charset.Charset
        at net.cimte.Cimte.<clinit>(Cimte.java:30)
        at java.lang.J9VMInternals.initializeImpl(Native Method)
        at java.lang.J9VMInternals.initialize(J9VMInternals.java:177)

Mh. Maybe something with eclipse is wrong. So I copied the nio.* class
files 
directly in the bootclass file of J9 (classes.zip). But I got the same 
result. I think it should work, or am I completely wrong?


Greetings,
Tobias




 1 Posts in Topic:
Tried to enable nio.* in IBM J9 but...
"Tobias Ginzler"  2008-02-05 17:06:45 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Mon May 12 3:55:09 CDT 2008.