New guy here, trying Java for the past 2 months. I came across a nice, in-depth tutorial by Brent Aureli on youtube. Seems like a really cool project! The tutorial is about creating Mario using libGDX, but already at the start of the project, I'm having problems.
Error code 1: Could not determine java version from '9.0.1'. Maybe something to do with the Java version as the tutorial is from August 2015?
Error code 2: Class 'com.mygdx.mario.desktop.DesktopLauncher not found in module 'PMario'. DesktopLauncher is, by the tutorial, supposed to be the main class. I can't seem to find it in Edit Config when trying to run the project.
This is all from his first video in the series (https://www.youtube.com/watch?v=a8MPxzkwBwo&).
Heres a link to pictures of the setup and where it goes wrong:
https://imgur.com/a/YASAOMd
Link to better quality of picture 3 from album:
https://ibb.co/fQ5aWx
Anybody familiar with this error? Any tips welcome!!
Java version convention changed from '1.8' to '9.0', old gradle wrapper doesnt know what to do with that.
distributionUrl=https\://services.gradle.org/distributions/gradle-3.3-all.zip
3.3 should work, latest libgdx uses 4.6
Related
First time with JavaFx. To begin with, I've made sure that my version of Java is, indeed, Java 13: Screenshot:
And, I've followed all the directions on the JavaFx tutorials: https://openjfx.io/openjfx-docs/#introduction
I've spent so many hours on this issue. I found similar problems, but the closest "solution" to my problem assumed that the VM customization was put in verbatim, but I have made sure to use the correct path. I have tried the tutorials for both modular and non-modular applications. I have customized everything, for the project itself to Appearance and Behavior preferences. I downloaded the separate JavaFx 13 file from via Gluon and made sure I was able to access them (I have a Mac, so this required a security override).
I have gone so far as to uninstall all Java and JavaFx libraries from my computer and reinstalled them.
After trying what seems to be everything, I have the same error :(
Screenshot:
Otherwise, if I try to toggle some, I'll get the classic (but dreaded) result:
"Error occurred during initialization of boot layer
java.lang.module.FindException: Module JavaFxProject not found"
Does anybody have some insight into this? I'd love to find out it was a tiny bug that I could easily eliminate, even though I've already spent so many hours trying to solve this problem myself.
Thanks in advance.
I am new to Android Development/Java Programming/Eclipse so please bear with me. I've been going through the Android Developer Training (developer.android.com/training) and the Hello Android book by Ed Burnette and keep running into a problem that is making it difficult to move forward. I'll do my best to describe it and am hoping that the community can help me resolve it.
I began seeing this issue with the Android Developer Training (around Adding the Action Bar -> Adding Action Buttons) and it became impossible to circumvent at Hello Android's 3.3 Creating Opening Screen when I tried adding the Sudoku buttons. The only change I made when going through Hello Android was adding the Android Development Toolkit (ADT) for Eclipse. I don't recall this being a required download going through the Android Developer Training page so I am wondering if its addition could have contributed to the problem.
The issue that I keep running into is that when I go to build the project, Eclipse keeps telling me:
action_settings cannot be resolved or is not a field
activity_sudoku cannot be resolved or is not a field
container cannot be resolved or is not a field
fragment_sudoku cannot be resolved or is not a field
sudoku cannot be resolved or is not a field
I've tried several fixes that I saw on in the forum including deleting the import.android.R from the sudoku.java file in my src folder but that brings up a bunch of errors that say R cannot be resolved into a variable. I've tried cleaning and rebuilding and restarting Eclipse, methods that occasionally worked before Hello Android and the plugin, but keep getting the same errors. I've also tried setting to Android 3.0 and higher thinking that might be an issue but there was no change. Occasionally I get another error regarding not being able to find the path for a container but I've been playing around with the IDE for 15 minutes and can't seem to get it to pop up again.
I could really use some help on this.
Hope to hear from you,
Yusif Nurizade
This solution may, first and foremost, demonastrate how green I am with Android programming but I believe I found the solution.
Initially following the Android Developer Tutorial, I downloaded the latest versions - 18, 19, 20, etc. When I was creating the project, however, I was specifying much early versions for compatibility; all the way down to 7 or 8. I looked into this because I remembered seeing a message from the IDE regarding the Action Bar and how some commands weren't supported on Version X.
I went back and downloaded all the versions down to 7 or 8 and set the compatibility accordingly. The example now works with minimal other changes. I realize that I may be overlooking something but this is the only major change I made and it seems to have done the trick.
Hopefully this will help other newbies!
Yusif Nurizade
Im trying to get JOGL to work in Eclipse on my Mac but im having some issues; just to clarify I have never used JOGL before in my entire life so this whole thing is very new to me. Ive tried looking for some tutorials but they are all outdated/use different files on every website I go to.
So, I have downloaded the latest build from the JOGL site (jogamp-all-platforms.7z) and I have extracted it. I have a new project in Eclipse which I have just created, when I select 'Add JARs...' in User Libraries im only given the choice of '.classpath' or '.project' which doesn't seem to be an issue on any of the tutorials written. I was just wondering if im doing something wrong at this point?
It's explained
here in the official JogAmp wiki.
I installed JavaME and EclipseME, and I'm trying to make a Hello World to my Nokia5530. But the imports are not working.
This page says that I need a "Device" file, but I don't know where to find it.. any idea?
Since it appears no on else is helping with this, I will start an answer, and put in my last comment into here.
OK, you need to install the Nokia SDK and then import it, as explained here, though your phone may not be series 60, you will need to d/l and then import the appropriate nokia sdk version: http://wiki.forum.nokia.com/index.php/Installing_Java_ME_development_tools_for_S60#Configuring_EclipseME
I haven't tried the suggestions here as I primarily develop on Windows at the moment, but the idea of using wine to install the SDK, and then move the files to an appropriate place on Linux sounds like a reasonable suggestion. I don't know if the suggestion below of compiling it yourself would be useful, but, there were some suggestions in the link below that may help you solve this particular problem.
http://www.wirelessforums.org/alt-cellular-nokia/nokia-sdk-linux-8895.html
I'm looking at learning JavaFX.
I've tried setting Eclipse to develop a small app and I've downloaded the Eclipse plugin.
Eclipse JavaFX plugin
BUT... it just seems, well, flakey.
So I have 3 questions...
1: Is there a better plugin?
2: Or is there some great set of tutorials out there that I'm missing?
3: finally, is it meant to be easy to call Java code from FX? I'm stuggling, it there a good example somewhere?
On questions 1 & 2, Eclipse underlines code in red that just shouln't be. For example..
see this image... alt text http://www.qenet.co.uk/fx.jpg
Why does it underline bit of imports in red?
I know this is little of an open ended question. So I guess my main question is this...
Is my experiance of JavaFX and Eclipse the best I can hope for? Or am I missing something ?
(and I'm not looking for a Yes/No response) :-)
Just looking for a discussion on how best to learn/develop JavaFx.
This kind of thing is not unusual. A lot of Eclipse plugin editors have problems dealing with error tags and the like. For example,
I find that the XML and HTML file editors often fail to clear error and warning markers, and the only way to get rid of the markers it is close and reopen the file.
Even the Java viewer gets it wrong in some circumstances, though the problem goes away when the relevant files are saved.
When you update a spelling dictionary, the spelling checker is not rerun and the spelling error markers are not updated. In fact, you have to restart Eclipse for this to happen.
I suggest that you try saving files, and closing/reopening editors to see if that makes the bogus error markers go away. Then decide whether Eclipse is the right IDE for this task.
I've never used NetBeans (at all), but you would expect that it would do a better job supporting JavaFX. After all NetBeans and JavaFX are both high profile Sun products at the moment.
Netbeans is really the only way to go at the moment for JavaFX development. They are both Sun products and Sun has made sure the two work very well together. Before long Eclipse and others will catch up but for the moment that's how it is.
There is another JavaFX plug-in for Eclipse from Exadel. You can download it here: http://exadel.org/javafxplugin. Give it a try.
I have similar problems but funnily only under Linux, not Windows. Hope they change that soon.
To me this has happened when I wronlgy installed javafx sdk 1.2.3....This plugin works only with 1.2.1... :/