how do you run classpath?

2006-02-15 Thread simon place
while browsing, trying to solve a problem, came across classpath, but 
when i tried it i found a bug in the bit i wanted to use,( URL class ) 
which appeared easy to fix, wrote what i thought was a fix but now can't 
seem to find a nice way to run it.


i am trying NOT to set up another development environment and really 
just want to replace the existing class and run it.


here's what i've tried so far;

used IKVM, but the -xbootclasspath option doesn't override the existing 
classes. (this seems like a bug which i've posted.).


tried to compile classpath using jikes to run under sun JVM but get this;

   Found 1 semantic error compiling C:/Program
   Files/classpath/java/lang/ClassLoader.java:

   
 1097. new URLClassLoader(urls, parent)
   . . .
 1112. };
   
   *** Error: A constructor associated with this anonymous type does
   not throw the exception java/lang/SecurityException thrown by its
   super type, java/net/URLClassLoader.



and i'm only doing that because i can't find a runtime anywhere. ( is 
this because runtime's are somehow VM dependent, and it's too difficult 
to maintain a runtime for this VM? )


please help, getting a bit frustrated, a simple bit of hit and run 
contribution, has turned into a week of annoyance.


simon.



RE: how do you run classpath?

2006-02-15 Thread Jeroen Frijters
simon place wrote:
 while browsing, trying to solve a problem, came across classpath, but 
 when i tried it i found a bug in the bit i wanted to use,( 
 URL class ) 
 which appeared easy to fix, wrote what i thought was a fix 
 but now can't seem to find a nice way to run it.
 
 i am trying NOT to set up another development environment and really 
 just want to replace the existing class and run it.

I know how frustrating this is. Building an open source project can be a
real pain (especially on Windows). However, if you had asked on the
ikvm-developers list, I would have been happy to help you set up an ikvm
(including GNU Classpath) build environment.

 here's what i've tried so far;
 
 used IKVM, but the -xbootclasspath option doesn't override 
 the existing classes. (this seems like a bug which i've posted.).

This is not a bug, but a design decision.

 please help, getting a bit frustrated, a simple bit of hit and run 
 contribution, has turned into a week of annoyance.

I recommend you post your bug report (possibly including your suggested
fix) either here or to the ikvm-developers list, and if you ask me and
if it's a small issue, I'm usually fairly quick to include the fix in my
working tree and post a new ikvm snapshot that includes the fix.

Regards,
Jeroen