This site requires JavaScript, please enable it in your browser!
Greenfoot back
DHEERAJ
DHEERAJ wrote ...

2016/6/6

Greenfoot configuration in Eclipse

1
2
DHEERAJ DHEERAJ

2016/6/6

#
We have built the Bluej ant build file successfully,but we are not able to build Greenfoot ant build file. There are some folders missing in the downloaded greenfoot folder .
davmac davmac

2016/6/6

#
Ok, it looks like there's a problem with the Greenfoot 3.0.3 source bundle. We'll look at that shortly - thanks. You might prefer to report build issues with Greenfoot itself to our support email (support@greenfoot.org). (btw: to post an image, you need to use the URL of the image itself, not the URL of a page containing the image).
davmac davmac

2016/6/6

#
We've now made a new source bundle available - can you try again? (i.e. re-download and re-build).
DHEERAJ DHEERAJ

2016/6/6

#
Where can i find the new source bundle available, in the download->sourcecode, we are still have the 3.0.3 version itself, please specify the link for the new source bundle.
DHEERAJ DHEERAJ

2016/6/6

#
Can you please post the steps with images that we should do to build the greenfoot.
davmac davmac

2016/6/6

#
Where can i find the new source bundle available, in the download->sourcecode, we are still have the 3.0.3 version itself, please specify the link for the new source bundle.
The previous bundled was replaced, use the original link.
Can you please post the steps with images that we should do to build the greenfoot.
No, I'm sorry but I don't have time/inclination to prepare such a thing. There is a detailed set of instructions (as plain text) in the source bundle; you'll need to follow those.
DHEERAJ DHEERAJ

2016/6/7

#
ok thank you, I have successfully built the ant build configuration of the bluej in eclipse,but if i run the project i am getting the import threadchecker can not be resolved error as shown in the image Please help
davmac davmac

2016/6/7

#
You need to add "bluej/threadchecker/src" as a source path in the build path configuration for the BlueJ project, without output path "bluej/threadchecker/classes". I've updated the documentation (for next release), thanks.
DHEERAJ DHEERAJ

2016/6/7

#
Thank you, After all these bluej configurations by importing and adding source folders, i am getting some error in source codes and other errors,the image shows the errors Please help me
davmac davmac

2016/6/7

#
The exception shows that the class org.apache.commons.logging.LogFactory is not being found at run time. This class is in the file commons-logging-api-1.1.2.jar, which is included in the source bundle, and should be automatically put on the runtime class path by the bluej.Boot class. I don't know why this is failing for you. The other errors are also not expected. You don't show the error message so it is difficult to guess what is going wrong. Showing your run configuration and build configuration settings might shed some light.
DHEERAJ DHEERAJ

2016/6/7

#
If there are errors also i am getting bluej window when i run it,but at console of eclipse i am getting errors. ok ,i will upload the images of build configuration and run configuration,please see and help
DHEERAJ DHEERAJ

2016/6/7

#
ok,i think there is something wrong with the commons-logging-api-1.1.2.jar,so i downloaded the new jar file from Download org-apache-commons-logging.jar : org apache « o « Jar File Download and added this jar file to the libraries of build configuration instead of the older one. now i am not getting any errors in console and i am getting a bluej window, but their are errors in code as shown above. Please help me for the errors in the code.
davmac davmac

2016/6/7

#
Some odd things in your configuration: in the build path libraries, the path for commons-vfs2-2.0.jar looks strange (it is an absolute path instead of project relative like every other jar file). In the source path configuration, the default output path should probably be bluej/classes rather than bluej/bin, though it shouldn't matter much if the output paths for the individual entries are set correctly. As I mentioned before, I can't see what the errors in the eclipse build are - it shows red underline, but not the error messages. It's difficult to help you without the error message.
DHEERAJ DHEERAJ

2016/6/8

#
OK,now i have shown the error messages in the image,please see error 1: bluej/src/bluej.stride.framedjava.slots/ExpressionCompletionCalculator.java - line number-103 error 2: bluej/src/bluej.stride.generic/SandwichCanvasesFrame.java - line number-203 Thank you
davmac davmac

2016/6/8

#
Ok. It looks like you have wrong Java compliance level. Go to your project settings, and choose the "Java Compiler" settings. Tick the "enable project specific settings" box. Set the "Compiler Compliance level" to 1.8.
There are more replies on the next page.
1
2