Copying 1 file to D:\home\davmac\workspace\greenfoot\package\macfiles\Greenfoot-legacy.app\Contents\Resources Copying 1 file to D:\home\davmac\workspace\greenfoot\package\macfiles\Greenfoot.app\Contents\Resources Copying 1 file to D:\home\davmac\workspace\greenfoot\boot\src\bluej Copying 1 file to D:\home\davmac\workspace\greenfoot\package I will try to find a way to look for the JDK folder instead and change the code.īuildfile: D:\Program Files (x86)\eclipse\workspace\greenfoot\build.xml I fixed the problem by copying the tools.jar into the JRE lib, but this seems like an odd fix. System.getProperty("") links to the JRE on my system and therefore isn't able to find the tools.jar. Potential problem for execution.") įor some reason "javaHomeDir" is equal to "new File(System.getProperty("")) ". on other systems where we don't find it, we just warn. ToolsFile = new File(parentDir, "lib/tools.jar") If(osname.startsWith("Mac")) // we know it does not exist on a Mac.įile toolsFile = new File(javaHomeDir, "lib/tools.jar") įile parentDir = javaHomeDir.getParentFile() String osname = System.getProperty("os.name", "") * MalformedURLException for any problems with the URL * The URL of the tools.jar file for the current Java implementation, or null. * MacOS is the only system known to us without a tools URL, but * tools.jar is needed on many (but not all!) systems. * Looks for lib/tools.jar in the current javaHome * Get the URL of the current tools.jar file You might have facepalmed a few times looking through the steps I made, but anyway I would like some help with the problem. Lastly I went to the Run Configuration and made the following changes to a new run option I named "BlueJ": Then I extracted the source and pasted the whole content of the bluej folder into my project:Īfter that I tried to setup the source and output paths: So the first thing I did was that I created a new Java Project and named it "bluej". Where "Something" is many different class names. Most of the errors says "Something cannot be resolved to a type". I have 2.060 errors and 491 warnings in the project. QuitResponse cannot be resolved to a typeĪt 0(Native Method)Īt (Unknown Source)Īt (Unknown Source)Īt .newInstance(Unknown Source)Īt (Unknown Source)
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |