-
Notifications
You must be signed in to change notification settings - Fork 244
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Template with examples not working #167
Comments
Please try out the latest beta at http://services.informatik.hs-mannheim.de/~nagel/GDV/unfolding_app_template_with_examples_0.9.92.zip |
Thanks for the suggestion. I imported that new version. When running the first example, HellowUnfoldingWorld.java, with JDK 12, the console displays :
A window opens that displays black. I suspect it is supposed to display a map. I haven't set the native library as instructed in the readme because I don't know how to do that. |
Could you try Java 1.8 again? |
Running HelloUnfoldingWorld.java under JDK 1.8 does the same, except that there are no warnings. |
Is this HelloUnfoldingWorld example app the one from the distribution (i.e. from the Unfolding project), or one from the UCSD course? Please use the one from the distribution, or paste the code here. |
It is an example from the package that I downloaded from the link you posted, version 0.9.92. |
Ok, try out the SatelliteProviderMapApp to check if are able to see a map there. Do you have a firewall prohibiting outgoing requests (the map tile images are requested from external servers). |
No. Running SatelliteProviderMapApp.java also shows a window that is filled with black, both under JDK 1.8 and 12. As firewalls I have a router and Windows 10 Defender. I have had no problems with them since I have this computer, that is since 14 months ago. Temporarily disabling the latter appears to make no difference. |
If I understand correctly, there is no good way to use Unfolding Maps, at least not on my computer. |
Yes, seems like it. I am very sorry for that, but haven't heard of your problem before. Last question: Did you try other OpenGL examples (from Processing and/or JOGL)? Do any of these examples work on your computer? |
No. How can I find these other OpenGL examples from Processing and/or OpenGL ? |
I downloaded and installed Processing, which to my surprise was easy. float x,y,z; Then I told Processing to run that code and to my surprise it did. A window with a changing rectangle appeared. I tried using that code in Eclipse, but it tells me there are syntax errors in the code, like “P3D cannot be resolved to a variable”. |
Hi. I also used that version 0.9.92 yesterday, using IntellJ, using JDK 1.8.
This does show up for me. |
@ r-hmn: With that single change the program creates an interactive map showing Berlin. I went back to my original problem with the UCSDUnfoldingMaps package and managed to make that work too with JDK 1.8 and JAVA2D as argument for size() i.s.o. P2D. In the console the comment “No OpenGL renderer. Using Java2DMapDisplay.” appears when either program is run. |
I also tried to run the "SimpleMapApp" in Eclipse but this exception message always appears: Exception in thread "main" java.lang.ExceptionInInitializerError I have no experience with Eclipse. Could anyone tell me what should I modify? |
type following inside the HelloWorld class and Run as a Java application. It worked fine for me. public static void main (String[] args) { PApplet.main(module1.HelloWorld.class.getName()); } |
Thanks for this. For me the issue is RESOLVED here. It was due to my firewall blocking the images being loaded. |
Dear Github members,
I have started a course on Object Oriented programming in Java from UCSD via the Coursera platform and using Eclipse. (I am not familiar with Eclipse.) The exercises are based on Unfolding Maps. The teachers made a starter program that we are supposed to extend , but that doesn't work. The reason seems to be that their program uses the no longer supported AppletViewer.
I decided to try out Unfolding Maps myself in the hope of learning how to modify the starter program from UCSD such that it works. So I downloaded unfolding_app_template_with_examples_0.9.6.zip and imported it in Eclipse.
I tried JDK 1.8 and 12. Running the first example, SimpleMapApp failed with both. With JDK 12, running as Java applet, the following error message is displayed in the console :
Running as Java application, an empty map window appears and the following message in the console :
+about 30 more similar lines
Can anyone explain how to make Unfolding Map work with Eclipse ?
The text was updated successfully, but these errors were encountered: