Page 1 of 1

Problems with Java

Posted: Sun Sep 22, 2013 9:55 am
by gnasen
Hey guys,

I want to use a Java project from another person and I stumble about some strange errors. I think they may appear from a false set up.
However I downloaded the source and all missing 'jars' (unmodified, we could say virgin) and wanted to ask if someone could have a look at it.
We could use Teamviewer, Skype etc to communicate.

Please PM me if you have time today.

Greetings

Re: Problems with Java

Posted: Sun Sep 22, 2013 2:27 pm
by Shield
Maybe you could give some more details,
the problem might be resolvable just via the forum. :)

Re: Problems with Java

Posted: Sun Sep 22, 2013 3:12 pm
by gnasen
Ok I will give it a try:

1. I import the project in eclipse. As you can see there occur 8 problems about missing jars.
Image
2. Now I unpack the archives with the missing libs and import the 'jars' by hand ('Java Build Paths' Dialog)
Image
Image
3. And now there are new problems and I have simply no idea where I could start looking.
Image

Re: Problems with Java

Posted: Sun Sep 22, 2013 4:25 pm
by IdeasVacuum
erase .position, input the dot again, what options are offered by Eclipse? If there is nothing satisfactory, then .position is may be defined elsewhere (in another file that needs to be included)

Re: Problems with Java

Posted: Sun Sep 22, 2013 4:49 pm
by gnasen
thanks for the idea! I could find out that all errors raised from classes of the jbox2d.
Is it maybe not enough to include this .jar file, but to do some "java magic"?
As far as I understand this .jar files should run out of the box?

Re: Problems with Java

Posted: Sun Sep 22, 2013 5:02 pm
by IdeasVacuum
I have no idea, been too long since I last meddled with Java - could it be that jbox2d has file dependancies that are missing?

Re: Problems with Java

Posted: Mon Sep 23, 2013 8:21 am
by gnasen
This is quoted from the QuickStart guide, does not look like I'm missing something :?
Importing JBox2D
Jar Releases

The jar releases have all dependencies included, so you just need to include them as an external library in your project. This is a common option with most IDE's, and usually consists of:

1. Placing the jar in your project
2. Right clicking and choosing to include the jar in the build path.

Re: Problems with Java

Posted: Mon Sep 23, 2013 1:10 pm
by IdeasVacuum
...did you download the jar files yourself though? Also, the Netbeans IDE is in my view easier to use than Eclipse. How about downloading a fresh install of Java + Netbeans, and then trying to load your project?
http://www.oracle.com/technetwork/java/ ... index.html

Re: Problems with Java

Posted: Tue Sep 24, 2013 1:46 pm
by gnasen
The project has been written in the eclipse IDE, so I chose this one. Further it is a virgin setup of java, fresh installed without any changes and I downloaded the missing jars by myself.

Java is really annoying me, I nearly never get a project to work out of the box. I always have the feeling, that this IDE's are so overloaded that you loose the overview. I really appreciate c/pb with simple IDE's, imo it is easier to spot errors there.

Re: Problems with Java

Posted: Tue Sep 24, 2013 3:02 pm
by IdeasVacuum
I always have the feeling, that this IDE's are so overloaded that you loose the overview.
I'm sure it must have improved by now, but that was my feeling about the Eclipse IDE too - hence my suggestion to try NetBeans, which is dedicated to Java and is quit nice.

Re: Problems with Java

Posted: Tue Sep 24, 2013 4:18 pm
by IdeasVacuum
Interesting comments about the latest Java release: http://www.developer.com/java/oracle-bu ... ni=7556983