I need to get a local setup of Java working so I can start coding locally and doing builds.
I know that Java is built into macs automatically. I am running version 1.6.0_22
I found an article on how to install tomcat:
Tomcat on a Mac
I got the Tomcat server running to where i can see the default Tomcat Page.
Started to dig deeper but hit a huge wall on getting to a point where i could use an IDE to get coding.
I downloaded Eclipse for the mac (because it was free and seemed to be the more popular one out there)
So where do i need to go from here to get a working environment to test code from our svn?
Any good articles that i can read. It was hard to find some (recent) documentation on how to get this working on a mac.
Which version of Eclipse did you download? I'm guessing you downloaded Eclipse IDE for Java Developers, which doesn't have the nice WTP stuff that you probably want.
You'll need a heavier flavor of Eclipse, like Eclipse IDE for Java EE Developers. I'm not sure if there's a lighter (in-between) flavor that has WTP, etc., without all the Java EE stuff.
Assuming you have some sort of SVN client and know how to create a trunk on your local machine, do that, and then all you have to do from there is open the java project in that trunk within Eclipse. Once you have that open, on the Eclipse toolbar just build your code, make sure that works, and then run it in the same fashion.
Related
I'd like to install Eclipse on Ubuntu for Java development. I'm happy to trade having the newest version for steady updates via package management.
I've done the usual sudo apt-get install eclipse eclipse-jdt (java-7-openjdk-i386 is installed and working)
However, when I start Eclipse, there seems to be almost nothing available - no Java editing (not even 'Installed JREs' is present under Window/Preferences). I've tried adding various update sites, installing Marketplace client, WTP, Java EE etc. but just can't get a working install. Oddly, I have it running fine on another machine I set up about a year ago (with the help of How do I install Eclipse Marketplace in Eclipse Classic?)
I've given up and reverted to a manual install (along the lines of Eclipse 3.6 Helios for Ubuntu 10.10) but wanted to ask:
Am I missing something obvious?
I strongly recommend you not to install Eclipse in that way, it is not really useful and you will get just the Eclipse with the Java Standard Perspective. What I recommend you is to download the tar.gz file from the page (including the Java EE perspective). Copy the tar file in a directory where you want all your development tools, like /home/user/dev/eclipse and start from there. You can create a launcher in your desktop to get a faster access to the IDE. When I started with Ubuntu, I used to install the way you had installed (sudo apt-get...) but I can tell you that the best way to do is to install it manually. If the JDK is well installed, you will not have any problem launching your Eclipse. Best regards.
I just installed Eclipse at home, so I can program servlets. But it seems that I don't have the new Web applciation option, and many others.
Anyone knows what's the problem ? I install it first in Program Files then on C:\. Still the same problem.
Btw, I am using Windows XP, with Eclipse Helios Service Release 2.
Did you download the version that includes WTP (Web Tools Platform). If not you will have to add the appropriate features.
Which version of Eclipse did you download? There are several different distributions (Eclipse Classic, Eclipse for Java Developers, etc.). You should make sure you downloaded the "Eclipse IDE for Java EE Developers".
http://www.eclipse.org/downloads/packages/eclipse-ide-java-ee-developers/heliossr2
To program servlets you need Eclipse for Java EE developers, and DON'T forget a server like Apache Tomcat, or Glassfish, which I guess are not included with the original package of eclipse.
Personally I have manage to install Tomcat separately from Eclipse and then link it with the IDE. There are plenty of tutorials on youtube:
http://www.youtube.com/watch?v=IX8xb-suzVg
http://www.youtube.com/watch?v=EOkN5IPoJVs
am developing a simple web app using jsps and servlets for tomcat 5.5.
Currently using the Eclipse Helios and Dynamic Web Application Project.
For some reason it is a nightmare. We spent 4 hours today trying to deploy a servlet to tomcat. We kept getting errors like
"java.lang.UnsupportedClassVersionError: Bad version number in .class file"
we played around with everything trying to set the build compatibility to what tomcat had but couldn't make the stupid thing work. (Yes it is possible we're incompetent. any suggestions on what we can try looking at are apprecieated)
My friend recalls from long time ago that he used this plugin
eclipsetotale_tomcatPlugin
in order to create a "tomcat project". My question is, does sysdeo tomcat plugin add any features that aren't already available in helios?
thanks
Not sure about sysdeo, but your error seems similar to bug 116713:
If your default JRE is set to 1.4.2 and you have a Web project targetting
Tomcat 5.5 (dynamic Web module version 2.4 and Java 5.0), when you tried to run
a main program, you'll get the error (you mention).
What is your default JRE set for your project?
This scenario happens when the JVM running the code is older than the one the compiler generated code for.
Have you considered simply running Tomcat under Java 6? If that is not an option, please edit your question to include this and any other restrictions on this project.
We used to get that error often when we had Java version issues. Eclipse environment and Windows environment (java_home and path variables typically) are easy to overlook.
Also, you can use javap -v Foo in same directory as Foo.class to find out its version.
Just use the Eclipse IDE for Java EE Developers, 206 MB edition of Eclipse. It has Tomcat and other webserver support built-in by default. Works like a charm!
Sysdeo is an old, as far as I know obsolete, plugin.
Sorry if my question seems dumb. I've started using Eclipse Ganymede 3.4 this week and having hard time publishing my projects to the web app server.
First of all you need to know this issue:
i installed my Tomcat 6.0.18 from Netbeans that i use for PHP and J2SE project. While i can start that server from either Netbeans or Eclipse, it can not start manually for some reason even though i setup my JAVA_HOME correctly pointing to jdk/bin it's saying it's a jre. it a bit weird but i can use the IDE to get going. i did some research on the net and find out that eclipse doesn't publish to tomcat.
In fact i always develop by having a local copy on other drive than C where XP is installed and publish to a server installed on C.
So where i need to find a way to publish to Tomcat under C.
It there any simple way to do that?
Please share your experience.
Thanks for reading
Ps : i know that i can use Netbeans but i'ld like to use Eclipse and use its wysiwyg
thanks!
WTP (Web Tools Platform) should get you what you need. It's a set of Eclipse plugins which includes a one to start/stop/debug Tomcat and publish to a local Tomcat installation.
http://www.eclipse.org/webtools/
You can download a version of Eclipse that already includes WTP: Eclipse IDE for Java EE Developers.
I admit this is not the best practice for a general case, but in my local development environment I created a separate Tomcat environment and I simply store the project itself in this Tomcat's webapps directory. This way the 'deployment' is implicit and instant.
Of course when I need to do changes in the code which cannot be incrementally added during a debug session, I have to restart the Tomcat.
I am trying to build an Eclipse application that would work with a linux/motif installation target. However, this seems not to be possible even though the export option is available in the product export wizard.
I've checked the content of the delta pack and indeed, the packages for linux/motif are missing. After checking the downloads page for eclipse 3.4 at:
http://download.eclipse.org/eclipse/downloads/drops/R-3.4-200806172000/index.php
I see that even though there is an Eclipse version marked for Linux/motif, it is marked as Testing only. Additionally, there is no delta pack for this target.
Has anyone been successful building an RCP application targeting linux/motif? Would it work if I download this testing only version of eclipse and copy the missing plugins?
We have a similar issue. We are building Eclipse applications and one of our platforms is Solaris 10 x86 which was supported for a short time as an early access build in 3.2 and dropped. I believe 3.2 and 3.3 supported motif so your best bet may be to revert to an older version of Eclipse. I develop in 3.4 and when we do the Solaris specific release we switch back to 3.2, it is usually about 10 minutes of changes to fix everything for the prior version. Usually it is removing #overides in a few locations and changing a function or two that Eclipse no longer uses.
The other thing you can do is get the Linux/Motif package for Eclipse, and install it on a Linux box running Motif. Check out your project on that Eclipse machine and export it there. I tried out VirtualBox (a free Virtual Machine from Sun Microsystems) it should make this easy for you.