Minimize Ja.NET Forums
 
  Ja.NET Forums  Ja.NET SE  Using  Compiler Errors
Previous Previous
 
Next Next
New Post 12/17/2008 9:40 AM
  daniel.manzke
7 posts
No Ranking


Compiler Errors 
The first try of the post got lost, but I don't know why?! ;) I have downloaded Java.Net and installed it on a machine with Visual Studio 2008 and .NET 3.5. For the first HelloWorld I copied your code from the Using section. When I run the javac I get funny exceptions. Maybe you can give me a hint, what it could be. ;) C:\Program Files\Java.Net\jdk\bin>java -version Apache Harmony Launcher : (c) Copyright 1991, 2008 The Apache Software Foundatio n or its licensors, as applicable. Ja.NET SE Runtime Environment (build 1.5.0.111) C:\Program Files\Java.Net\jdk\bin>javac -version Eclipse Java Compiler 0.771, 3.3.0, Janet version, Copyright IBM Corp and others 2000, 2006. All rights reserved. C:\Program Files\Java.Net\jdk\bin>javac -java MyProgram.java ---------- 1. ERROR in MyProgram.java (at line 0) public class MyProgram { ^ Internal compiler error java.lang.NoClassDefFoundError: Die Datei oder Assembly Mono.Cecil, Version=0.4. 3.1, Culture=neutral, PublicKeyToken=9af2e2d7b2670807 oder eine Abhõngigkeit dav on wurde nicht gefunden. Das System kann die angegebene Datei nicht finden. at org.eclipse.jdt.internal.compiler.ast.CompilationUnitDeclaration.clea nUp(Unknown Source) at org.eclipse.jdt.internal.compiler.ast.CompilationUnitDeclaration.clea nUp(Unknown Source) at org.eclipse.jdt.internal.compiler.Compiler.compile(Unknown Source) ---------- java.lang.reflect.InvocationTargetException at java.lang.reflect.Method.invoke(Unknown Source) at org.apache.harmony.tools.javac.Compiler.main(Unknown Source) at org.apache.harmony.tools.javac.Main.compile(Unknown Source) at org.apache.harmony.tools.javac.Main.main(Unknown Source) Caused by: java.lang.NoClassDefFoundError: Die Datei oder Assembly Mono.Cecil, V ersion=0.4.3.1, Culture=neutral, PublicKeyToken=9af2e2d7b2670807 oder eine Abhõn gigkeit davon wurde nicht gefunden. Das System kann die angegebene Datei nicht f inden. at org.eclipse.jdt.internal.compiler.ast.CompilationUnitDeclaration.clea nUp(Unknown Source) at org.eclipse.jdt.internal.compiler.ast.CompilationUnitDeclaration.clea nUp(Unknown Source) at org.eclipse.jdt.internal.compiler.Compiler.compile(Unknown Source) Thanks so far, Daniel
 
New Post 12/17/2008 1:02 PM
  Dave
15 posts
No Ranking


Re: Compiler Errors 

Hi Daniel,

I'm embarresed to say, but there is a problem if you install Ja.NET SE into a directory path with spaces in it.  I'll be fixing that in the next drop.  It should be out up on sourceforge in a day or so.

But, the stack dump doesn't give me a good feeling that that is indeed what is wrong.  Can you uninstall and reinstall into a good path, then try it again.   After you do that, then check to make sure that Mono.Cecil was installed into the GAC by the installer. (ie. c:\windows\assembly).

Dave

 

 
New Post 12/18/2008 12:41 AM
  daniel.manzke
7 posts
No Ranking


Re: Compiler Errors 
Hi Dave, no problem. I will give it another try. ;) Problems with spaces is nothing new. We all have developed an application which had in the first steps a white spaces problem. ;) Stay tuned. Best Regards and Thanks from Berlin, Daniel
 
New Post 12/18/2008 1:24 AM
  daniel.manzke
7 posts
No Ranking


Re: Compiler Errors 
Yeahhh, it's working like a charm. Enviroment: - Windows Vista Business - Visual Studio 2008 - Ja.NET 1.5!!! :) Now I will try to compile some of my Java Projects. ;) Stay tuned!
 
New Post 12/18/2008 3:13 AM
  daniel.manzke
7 posts
No Ranking


Re: Compiler Errors 

Compiling my project worked very well.

But I found a problem:

Create a Java class with a variable of type double and try to assign 0.0. You will get an error message.

 

private double value = 0.0; //maybe this error is caused to . and ,

In Java you use the dot for double etc.

 

Daniel

 

 
Previous Previous
 
Next Next
  Ja.NET Forums  Ja.NET SE  Using  Compiler Errors
Syndicate