Google Groups Home
Help | Sign in
Tried to enable nio.* in IBM J9 but...
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  1 message - Collapse all
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
Tobias Ginzler  
View profile
(1 user)  More options Feb 5, 11:06 am
Newsgroups: comp.lang.java.machine
From: "Tobias Ginzler" <tobias.ginz...@gmx.net>
Date: Tue, 5 Feb 2008 17:06:45 +0100
Local: Tues, Feb 5 2008 11:06 am
Subject: Tried to enable nio.* in IBM J9 but...
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


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2008 Google