Eclipse Application to standalone? - java

I have been using Eclipse for my Java needs for quite some time now, but I have never really delved deep into it.
I was recently given this project by a friend which makes use of the XText plugin library to act as an IDE for a custom file type.
However, to launch it, I need to open the source of the editor itself in Eclipse and run it as an Eclipse Application which in turns open a separate Eclipse IDE.
I have been looking around for an easy way around this, but to no avail. Is there a way to run said Eclipse Application without having to first open the source of the custom editor and launching it?
Thank you!

I solved it by creating a shortcut for Eclipse and adding -data "PATH_TO_APP" on the 'target' field.
Thank you for your help everyone. :)

Related

My Eclipse Installation has no Java options or connections

I am a new "programmer," and I've created a couple of very basic programs and so much of the terminology is very new to me. I wish to create an executable program from eclipse that I can use outside of eclipse and give a couple of other people for a project, and all of the tutorials said that I needed to use Java to create a .Jar program. The problem is that my version of Eclipse doesn't seem to have any options for working with Java. When I export, there is no option to export to Java. I have no option to create a new Java project either. I don't know the correct terminology, but it seems that my version of Eclipse is not connected to Java. Did I mess up somewhere along the line when installing Eclipse? Was there an option I failed to check? Any help would be appreciated! Thank you!

How does Netbeans keep track of the projects' locations?

When you create a new Java project in Netbeans, you get to choose where it will be stored. My question is where does Netbeans keep a refrence to such created projects?
I looked in /etc/netbeans.conf but I did not find any refrence to the location I choose in Netbeans GUI.
The idea behind this is to be able to package the installed Netbean app and the created projects and be able to move it to another PC. If I know where such path is kept I can create an app that update it as necessary.
The official wiki of Netbeans doesn't talk about this.
Does anyone know about this?
For me, the project groups appear under:
C:\Users\aedison\AppData\Roaming\NetBeans\8.1\config\Preferences\org\netbeans
\modules\projectui
Replace aedison with your user name and replace 8.1 with your Netbeans version.
Hopefully that gives you a pointer in the right direction.
I would caution you against manually messing with these settings, though.
NetBeans is very very touchy. (Take backups first!)
I may be incorrect, but have you tried looking in your NetBeans userdir?
According to this page on their site NetBeans stores some files in ~/.netbeans and ~/.cache/netbeans/7.2/
Maybe try searching there for a database or perhaps XML file describing project locations

Automatically run Java app after installation (Mac)

Apologies if this has been asked already and I've missed it.
I'm writing a JavaFX desktop app, and would like to make it automatically run after installation, but I'm not sure where to look to make this happen (or even if it's possible?). I have successfully created a .dmg installer using E(fx)clipse & Ant. Are there options I'm overlooking which I can use in the build.xml? or am I looking in the wrong place entirely?
Thanks in advance :)

Eclipse behaves inconsistently after system crash

I have an urgent and puzzling problem with Eclipse. My system crashed on itself this morning, and after I rebooted, I can run a program perfectly within Eclipse, by right-click on the Java file and choose 'Run as Java Application'. However, after I make the project into a .jar file, and execute that, the behavior of the program simply does not reflect what the code does.
I have checked that I am compiling the right project, and running the same code from the same project within Eclipse does not cause any problem. And btw, I am using a plug-in called fat jar to compile the .jar file, if that makes any difference. I have used the same plug-in numerous times before to compile the very same project, and never had any problem.
Does anyone know what might be causing this weird/inconsistent behavior of Eclipse? Do I need to re-install Eclipse and fat jar to fix this? Thanks.
My usual procedure for strange things like this is,
A) Clean and build again i.e. Project -> Clean
B) (not so eclipse related) Since I am usually using a build tool, do the same thing from the tool to ensure its eclipse.
C) If it gets really bad, I'll start a new eclipse workspace and try from there.
D) Iff I had just installed a new plugin before things went strange I'd think about reinstalling
It sounds extremely strange :)
But Eclipse can, and has, acted strange before. I have had problems in both Java, C++ and PHP development during the years that could only be fixed with a resinstall of Eclipse. You could probably fix it by digging around, but the time it takes to find and fix these types of strange problems in Eclipse is simply not worth it.
Good luck!
Please try to Reset Perspective first (Before reinstall eclipse)
Window->Reset Perspective.

GWT context.xml in shell mode

I'm trying to get the GWTShell mode to load my context.xml file in which my database is described.
The only usable info can be found here, but this doesn't seem to work for the context.xml part.
I'm using Eclipse with Cypal Studio (previously called Googlipse).
If there is any other better plugin for Eclipse please recommend it.
As the Shell mode uses a Tomcat instance, which is the same target server we are using in the final deployment, it should be possible to achieve (or fake) a similar behaviour.
As of version 1.4, I have been running all my server side code, in my container of choice (Glassfish) and hooking up the GWTShell to that. Are you using Netbeans, Eclipse or something else? The Netbeans plugin gwt4nb does this for you out of the box, you just have to start your web project in debug mode. I'm sure the GWT plugin for Eclipse does the same thing.
I realise this doesn't directly answer your question -> but my question is, is there a reason you're trying to get GWT to pick up your database settings and not just running your project as normal instead. I find this much better and robust way of running the GWTShell.
Edit: Sorry I don't really use Eclipse, so I can't help you with plugins for it. I find Netbeans far superior for J2EE/web type projects. It's a bit slower, but far more functional. The plugin for that is called 'GWT4NB', it's free and it will set up your ant script in such a way that you just have to right-click on your web project and choose debug. I can understand if you don't want to switch IDEs though.

Categories