Problems with Java

For everything that's not in any way related to PureBasic. General chat etc...
gnasen
Enthusiast
Enthusiast
Posts: 282
Joined: Wed Sep 24, 2008 12:21 am

Problems with Java

Post 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
pb 5.11
User avatar
Shield
Addict
Addict
Posts: 1021
Joined: Fri Jan 21, 2011 8:25 am
Location: 'stralia!
Contact:

Re: Problems with Java

Post by Shield »

Maybe you could give some more details,
the problem might be resolvable just via the forum. :)
Image
Blog: Why Does It Suck? (http://whydoesitsuck.com/)
"You can disagree with me as much as you want, but during this talk, by definition, anybody who disagrees is stupid and ugly."
- Linus Torvalds
gnasen
Enthusiast
Enthusiast
Posts: 282
Joined: Wed Sep 24, 2008 12:21 am

Re: Problems with Java

Post 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
pb 5.11
IdeasVacuum
Always Here
Always Here
Posts: 6426
Joined: Fri Oct 23, 2009 2:33 am
Location: Wales, UK
Contact:

Re: Problems with Java

Post 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)
IdeasVacuum
If it sounds simple, you have not grasped the complexity.
gnasen
Enthusiast
Enthusiast
Posts: 282
Joined: Wed Sep 24, 2008 12:21 am

Re: Problems with Java

Post 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?
pb 5.11
IdeasVacuum
Always Here
Always Here
Posts: 6426
Joined: Fri Oct 23, 2009 2:33 am
Location: Wales, UK
Contact:

Re: Problems with Java

Post 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?
IdeasVacuum
If it sounds simple, you have not grasped the complexity.
gnasen
Enthusiast
Enthusiast
Posts: 282
Joined: Wed Sep 24, 2008 12:21 am

Re: Problems with Java

Post 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.
pb 5.11
IdeasVacuum
Always Here
Always Here
Posts: 6426
Joined: Fri Oct 23, 2009 2:33 am
Location: Wales, UK
Contact:

Re: Problems with Java

Post 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
IdeasVacuum
If it sounds simple, you have not grasped the complexity.
gnasen
Enthusiast
Enthusiast
Posts: 282
Joined: Wed Sep 24, 2008 12:21 am

Re: Problems with Java

Post 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.
pb 5.11
IdeasVacuum
Always Here
Always Here
Posts: 6426
Joined: Fri Oct 23, 2009 2:33 am
Location: Wales, UK
Contact:

Re: Problems with Java

Post 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.
IdeasVacuum
If it sounds simple, you have not grasped the complexity.
IdeasVacuum
Always Here
Always Here
Posts: 6426
Joined: Fri Oct 23, 2009 2:33 am
Location: Wales, UK
Contact:

Re: Problems with Java

Post by IdeasVacuum »

Interesting comments about the latest Java release: http://www.developer.com/java/oracle-bu ... ni=7556983
IdeasVacuum
If it sounds simple, you have not grasped the complexity.
Post Reply