I am trying to follow the JaCaMo Eclipse Plugin instructions. I am getting a problem when installing a new software. Can anyone help? enter image description here
I tried to follow instructions but cannot solve the issue above. I have looked but cannot see anyone having the same problem.
I had the same issue. The problem is with the version of Eclipse. I'm assuming you're using a version that's 2021-12 or later. After the whole fiasco with Log4j at the end of 2021, I believe they stopped using it or changed something about it in Eclipse, and hence the error. Using Eclipse with versions 2021-09 or before will solve the issue.
Related
I hope this question does not seem to basic but I could not find any good documentation despite researching for hours.
I use Maven (Version 3.3.9) for my JavaFX (Version 11.0.2) with JDK 13.0.1 project and want to build an EXE.
What is the easiest way to do this?
All my researchs stucked somewhere.
Following this documentation, I tried to integrate ant-tasks. But the documentation required ant-javafx.jar to be in the jdk_home/lib directory which doesn't make sense for JDK 13 since it doesn't come with JavaFX.
But this was the latest official documentation where I could find something about Ant Task. So I guessed Ant Task does not work for JDK13 anymore, am I wrong? I hope this does not seem like a dumb assumption but I could not find a newer documentation.
I have also tried the zenjava plugin but the latest commit is 2 years ago, and when I try to use it I get an error
Could not find artifact javafx-packager:javafx-packager:jar:1.8.0_20 at specified path C:\Program Files\Java\jdk-13.0.1/../lib/ant-javafx.jar
Since I've read that javafx-packager was renamed to java-packager a longer time ago (sorry, don't remember, where I've read this) I assumed that zenjava is not up to date for JDK 13.
I couldn't find anything else.
Thank you :)
The first thing to do is to upgrade your Java and JavaFX versions to 14. Then you can use the new jpackage tool, which does exactly what you need. How to do all this with Maven is described in this tutorial, which I did together with Dirk Lemmermann. Maybe that helps.
JPackageScriptFX
I am using glassfish server.. the application was running smoothly but all of sudden i started getting this message.
build-impl.xml:1073:
Could any suggest me on how to solve this problem
Have you upgrade you netbeans or glassfish recently?
This problem happens sometime when you performed an upgrade with the netbeans IDE or some modules of it.
If you did, you had better try to create a new project or re-install the application in the glassfish again. This may help.
By the way, could you please provide some detailed information so that we can perform some further investigation.
well i don't think it is the good solution however i did not find any other option then the one i have mentioned below to solve this problem.
I uninstalled the GlassFish Server and installed latest version i.e. 4.0 ( You can install the same version, it should work) and then i removed the project from netbeans Projects list. I again created a new project and copied all the required files from the previous project. It worked. The application is now deployed in GlassFish Server 4.0.
However this solution to me is like formatting computer when you cannot solve the problem raised in your PC. If someone could tell me the reason and the way to solve the problem mention above i would be very thankful.
Anyways thanks to Mr lowitty for the suggestion.
I'm using Netbeans 7.4 with Apache Tomcat to debug a servlet.
The Tomcat server is throwing an error:
java.lang.ClassNotFoundException: org.apache.xerces.xni.XNIException
I'm new to the Java thing, and I was asked to make changes to this app, but I can't get it to debug because of this error.
When I Google it, it shows as a bug in Netbeans, but I cannot find help on fixing the bug.
Does anyone have suggestions?
I assume you're referring to this.
https://netbeans.org/bugzilla/show_bug.cgi?id=232690
The bug history says this bug was fixed somewhere in July 2013.
I would try using the latest IDE version or pull a nightly build
(in which this bug's fix was reported as being available).
Then if you still see the bus is not fixed, you may want to contact the
Netbeans team providing all the details (which build you tested it
with, on which OS, how you reproduced the bug, etc.)
Edit: I fixed this by starting an entirely new workspace and creating new projects. Everything compiles and builds now. I can't answer my own questions yet, so I'll just put this here! I'm not deleting this post since it might be useful to others.
I had to reinstall Eclipse from scratch. I decided to go with the newest version. I also installed the AspectJ plugin from the Eclipse Marketplace since my project uses AspectJ. Now, I have done this a few times before and I usually get issues with AspectJ. After cleaning and rebuilding and readding the projects a few times the build errors usually disappear.
But now I can't get past it. Whenever I try to build my project, I get the following error:
java.lang.NullPointerException
at org.aspectj.org.eclipse.jdt.internal.compiler.problem.ProblemReporter.unnecessaryCast(ProblemReporter.java:7066)
at org.aspectj.org.eclipse.jdt.internal.compiler.ast.CastExpression.resolveType(CastExpression.java:512)
at org.aspectj.org.eclipse.jdt.internal.compiler.ast.Assignment.resolveType(Assignment.java:150)
at org.aspectj.org.eclipse.jdt.internal.compiler.ast.Expression.resolve(Expression.java:947) ... oBuildJob.run(AutoBuildJob.java:241)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)
Compile error: NullPointerException thrown: null
The build fails at that point.
I have tried using an Indigo version of Eclipse with the Indigo version of AJDT. No luck.
I have tried reverting back to a stable branch in GIT and rebuilding. Again, same error. I've tried searching online but haven't found anything.
I am able to compile the program using an ant script that uses Java 1.6 and AspectJ 1.6.
I'm not sure where to go next to solve this problem. I am also wondering if anyone has had similar issues.
Thank you!
I just installed Eclipse EE Juno (4.2) and a whole slew of plugins for it. I am now attempting to install the Google plugin (GAE and GWT) and am getting an error when adding the update site through Juno's Install new software window:
Name: Google-Plugin
Location: http://dl.google.com/eclipse/plugin/4.2
When I try to enter this I get:
Could not find http://dl.google.com/eclipse/plugin/4.2
I see this question from a few months ago. Although I am having a very similar problem, I think I have a different problem altogether.
When I change the Location to http://dl.google.com/eclipse/plugin/3.7, I get the same error (except with 3.7 appended on the end of the error message instead of 4.2). I definitely have Internet access (how else would I be posting this question?!) so that's not the issue. If this was only working for the 4.2 plugin, I would happily try the "workaround" mentioned in the other post, or even step back down to Eclipse 3.7 (I have to have this plugin!) until 4.2 was working. But the fact that it's not even working for 3.7 tells me that something else is awrye here. Thanks in advance!
Edit:
Just to mess around with things, I have downloaded Indigo (3.7) and immediately attempted to install the Google-Eclipse plugin. I entered the following for my update site:
http://dl.google.com/eclipse/plugin/3.7
And received a nasty error:
Artifact not found: http://dl.google.com/eclipse/plugin/3.7/compositeContent.xml.
Artifact not found: http://dl.google.com/eclipse/plugin/3.7/compositeContent.xml.
http://dl.google.com/eclipse/plugin/3.7/compositeContent.xml
Am I going crazy here?!?! I've installed my fair share of Eclipse plugins and never had this much trouble. Especially from Google. And I know its not my Internet connection or my Eclipse instance because before I attempted to install the Google plugin, I installed Subversive, IvyDE and EclEmma...
It was also broken for me a little while ago, but seems to be working now. Maybe the site was down for a bit?
You can try installing the plugin from archive as described in the link:
https://developers.google.com/eclipse/docs/install-from-zip
Basically what you are doing is, you download the plugin as a zip(archive) and browse this archive instead of update site, during the plugin installation.