I'm having similar problems on a Redhat 7.2 box. Any Windows box on the network can get to any web address, but for some reason the Redhat box can't see certain sites. For example I can't get to www.hp.com but I can see www.google.com with no problem.
I dug around on Redhat's site for a little...
You'll either have to move the decleration for theTotal into the main() function or declare theTotal as static:
public static double theTotal;
OR... You'd have to instantiate class Asia inside of the main() function like this:
Asia myAsia = new Asia;
myAsia.theTotal +=...
In JBuilder5 (and I think it is the same in JBuilder4), all you have to do is go to File->New and then select "Archive". This will launch a jar wizard that will walk you through making a jar file of your project.
-Nick
Actually, you can call Java from C++ using JNI. It isn't pretty, JNI was ment to be from Java to C++, but it does work. Sadly there isn't a lot of documentation on this.
As for why the first code fragment didn't work, I'm not sure. I'm about 99% sure I have done this very thing operation...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.