creating project in Eclipse Luna

197 views
Skip to first unread message

mark...@yahoo.com

unread,
Jul 15, 2014, 6:36:18 AM7/15/14
to jbook...@googlegroups.com
Hello,
Another beginner here, asking for help to create the project in eclipse Luna. The documentation is for old version of eclipse and now when i create new project and select the folder or archive with the JBT files it says "No projects are found to import".
best regards

mark stab

unread,
Jul 17, 2014, 2:42:18 PM7/17/14
to jbook...@googlegroups.com

ok, I created manually packages from the corresponding folders and at least Eclipse does not complain, now in the package com.jbooktrader.platform.web there is another problem:


Access restriction: The type 'HttpServer' is not API (restriction on required library 'C:\Program Files\Java\jre7\lib\rt.jar')


this is here:

..

public class MonitoringServer {

private static HttpServer server;

Eugene Kononov

unread,
Jul 17, 2014, 2:48:01 PM7/17/14
to JBookTrader
Make sure that you use Java 1.7 or above, and that you have the jars files as libraries in the Eclipse project.


--
You received this message because you are subscribed to the Google Groups "JBookTrader" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jbooktrader...@googlegroups.com.
To post to this group, send email to jbook...@googlegroups.com.
Visit this group at http://groups.google.com/group/jbooktrader.
For more options, visit https://groups.google.com/d/optout.

mark stab

unread,
Jul 17, 2014, 3:45:34 PM7/17/14
to jbook...@googlegroups.com
Hi Eugene,
Thank you for the fast response, I have the last JavaSE-1.7 updated, the rt.jar is included in Libraries, all 162 access rules are accessible, Forbidden:**/*, Eclipse is updated

Eugene Kononov

unread,
Jul 17, 2014, 5:58:28 PM7/17/14
to JBookTrader
Hi Mark,

The rt.jar is just part of the Java distribution. JBookTraer comes with a number of other jar files, which must be added to the Eclipse project, just as it's shown in the setup guide.




On Thu, Jul 17, 2014 at 3:45 PM, 'mark stab' via JBookTrader <jbook...@googlegroups.com> wrote:
Hi Eugene,
Thank you for the fast response, I have the last JavaSE-1.7 updated, the rt.jar is included in Libraries, all 162 access rules are accessible, Forbidden:**/*, Eclipse is updated

--

mark stab

unread,
Jul 18, 2014, 2:52:13 AM7/18/14
to jbook...@googlegroups.com
Hi Eugene,
Yes, all the *.jar files from the "lib" folder are included in the project, actually these are
commons-email-1.3.1
commons-net-2.0
ibapi-9.66
jcalendar-1.4
jcommon-1.0.17
jfreechart-1.0.14
junit-4.5
mail

and the JRE System Library JavaSE-1.7

mark stab

unread,
Aug 18, 2014, 4:42:08 AM8/18/14
to jbook...@googlegroups.com
Hi Eugene,
-The problem seems to be in Eclipse, and this clean the error:

"There's another solution that also works. I found it on this forum:

  1. Go to the Build Path settings in the project properties.
  2. Remove the JRE System Library
  3. Add it back; Select "Add Library" and select the JRE System Library. The default worked for me.

This works because you have multiple classes in different jar files. Removing and re-adding the jre lib will make the right classes be first. If you want a fundamental solution make sure you exclude the jar files with the same classes."

-There is another .jar file: liquidlnf.jar included in the setup guide, but not in the /lib folder.

Klaus

unread,
Sep 7, 2014, 5:42:24 PM9/7/14
to jbook...@googlegroups.com
Hi, 

I have the same problem, but it seems I cannot get things to run. 
I tried to import JBT into Luna (Mac OS, Java 1.8). 
I first tried to simply import things from the download. But either it simply does not result in a java project. 
- then in installed Mercurial Eclipse, but this leads to the same result. 

So, is there a way in Luna to import this directly as a java project or to convert the whole thing in a java project. 
(I also tried to first create a java project with the name and then import, but if I import from file system it tells me: no project found and if I clone the repository, it says not allowed, because it already exists.)

Any help appreciated. (The docs are unfortunately not helpful as they are for very old eclipse versions. It seems the corresponding do no longer exist.)

Best Regards 
   Klaus
Reply all
Reply to author
Forward
0 new messages