Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » New to IDE's and frameworks. Need help setting up with remote system.
icon5.gif  New to IDE's and frameworks. Need help setting up with remote system. [message #1691828] Fri, 10 April 2015 01:56 Go to next message
Steve Norton is currently offline Steve NortonFriend
Messages: 4
Registered: April 2015
Junior Member
I've done lots of programming, but it has always been with "notepad" type editors. Having code syntax colouring in UltraEdit was a luxury.

Now, I want to start developing internet/intranet code using a proper IDE, grouped in projects, utilizing frameworks. To make things even more complicated, the server that the code is going to run on is NOT the machine that I am using to do the coding.

My coding workstation is:
- A Windows 7 PC
- Eclipse Luna installed, with JDK, EPIC, PyDev, PHP, RSE, Android and Vaadin plugins installed.
- Java 7 and 8 SDKs
- Android SDK
- NO web server, NO Cygwin, NO Perl, NO PHP, etc. installed on this Windows PC.

The server where I want to store and run my code is:
- A Centos Linux virtual PC
- Perl, PHP, Python, Apache and Java are all installed.
- NO X windows or desktop environment is installed. This is a pure CLI machine intended to be run headless.

What is the best way to work with the files on the Centos VM using the Windows PC?

How can I create projects stored on the VM instead of Windows PC?

Can I get syntax checking on the Windows PC without needing to install a web server, Perl, PHP, Cygwin, etc.?

Re: New to IDE's and frameworks. Need help setting up with remote system. [message #1691958 is a reply to message #1691828] Fri, 10 April 2015 23:03 Go to previous messageGo to next message
Russell Bateman is currently offline Russell BatemanFriend
Messages: 3798
Registered: July 2009
Location: Provo, Utah, USA
Senior Member

On 04/10/2015 12:13 AM, Steve Norton wrote:
> I've done lots of programming, but it has always been with "notepad"
> type editors. Having code syntax colouring in UltraEdit was a luxury.
>
> Now, I want to start developing internet/intranet code using a proper
> IDE, grouped in projects, utilizing frameworks. To make things even more
> complicated, the server that the code is going to run on is NOT the
> machine that I am using to do the coding.
>
> My coding workstation is:
> - A Windows 7 PC
> - Eclipse Luna installed, with JDK, EPIC, PyDev, PHP, RSE, Android and
> Vaadin plugins installed.
> - Java 7 and 8 SDKs
> - Android SDK
> - NO web server, NO Cygwin, NO Perl, NO PHP, etc. installed on this
> Windows PC.
>
> The server where I want to store and run my code is:
> - A Centos Linux virtual PC - Perl, PHP, Python, Apache and Java are all
> installed.
> - NO X windows or desktop environment is installed. This is a pure CLI
> machine intended to be run headless.
>
> What is the best way to work with the files on the Centos VM using the
> Windows PC?
>
> How can I create projects stored on the VM instead of Windows PC?
>
> Can I get syntax checking on the Windows PC without needing to install a
> web server, Perl, PHP, Cygwin, etc.?

This sound pretty complicated. My advice is simply to get a Bitbucket
account and use Git from your development host to store your projects.
Why would you want to store it somewhere it could be wiped out easily?

Most web application stuff is easily developed and basically tested from
the same development host using Tomcat or some other container.
Re: New to IDE's and frameworks. Need help setting up with remote system. [message #1691963 is a reply to message #1691958] Sat, 11 April 2015 00:28 Go to previous messageGo to next message
Steve Norton is currently offline Steve NortonFriend
Messages: 4
Registered: April 2015
Junior Member
Quote:
This sound pretty complicated. My advice is simply to get a Bitbucket
account and use Git from your development host to store your projects.
Why would you want to store it somewhere it could be wiped out easily?

Most web application stuff is easily developed and basically tested from
the same development host using Tomcat or some other container.
I have not heard of Git or Bitbucket. I've never been a fan of cloud storage, but it might make access to my projects easier if I end up working from multiple locations.

Storing my files locally, or on my host server are my preference because I'm coming from a "notepad" development mindset. I'm still used to working on the code in the place where it runs from. "Publishing" completed code is a new concept for me.

I was hoping to avoid having to load PHP, Perl, Tomcat, etc. on my workstation as it is my personal PC and I prefer not to have it overloaded with stuff that doesn't need to be installed or running in the background. For example, why would I want a webserver running all the time when I will only use it 10% of the time that I'm on my PC, and then only to test code that I could be testing on the target server?

Another issue that I didn't mention in my original post is that the code I'm developing will eventually be put into production on a server that I don't have control of - running an old version of CentOS, PHP, etc. My virtual CentOS machine is set up to mimic the production server as closely as possible. For example, the server is running Perl 5.8 and it will not be updated. Coding with Strawberry Perl 5.20 on my Windows machine doesn't guarantee compatibility.
Re: New to IDE's and frameworks. Need help setting up with remote system. [message #1691964 is a reply to message #1691963] Sat, 11 April 2015 01:32 Go to previous messageGo to next message
Steve Norton is currently offline Steve NortonFriend
Messages: 4
Registered: April 2015
Junior Member
I've created a Bitbucket account with a repository named "Repo" and installed the Git plugins for Eclipse. I still don't understand how I would create a project and use the Bitbucket account to store the files.

Using a simple "Hello World" java applet project as an example, how would I create it in Eclipse using Bitbucket and Git?
Re: New to IDE's and frameworks. Need help setting up with remote system. [message #1692009 is a reply to message #1691963] Sat, 11 April 2015 23:45 Go to previous messageGo to next message
Russell Bateman is currently offline Russell BatemanFriend
Messages: 3798
Registered: July 2009
Location: Provo, Utah, USA
Senior Member

On 04/10/2015 06:28 PM, Steve Norton wrote:
> Quote:
>> This sound pretty complicated. My advice is simply to get a Bitbucket
>> account and use Git from your development host to store your
>> projects. Why would you want to store it somewhere it could be wiped
>> out easily?
>>
>> Most web application stuff is easily developed and basically tested
>> from the same development host using Tomcat or some other container.
> I have not heard of Git or Bitbucket. I've never been a fan of cloud
> storage, but it might make access to my projects easier if I end up
> working from multiple locations.
>
> Storing my files locally, or on my host server are my preference because
> I'm coming from a "notepad" development mindset. I'm still used to
> working on the code in the place where it runs from. "Publishing"
> completed code is a new concept for me.
>
> I was hoping to avoid having to load PHP, Perl, Tomcat, etc. on my
> workstation as it is my personal PC and I prefer not to have it
> overloaded with stuff that doesn't need to be installed or running in
> the background. For example, why would I want a webserver running all
> the time when I will only use it 10% of the time that I'm on my PC, and
> then only to test code that I could be testing on the target server?
>
> Another issue that I didn't mention in my original post is that the code
> I'm developing will eventually be put into production on a server that I
> don't have control of - running an old version of CentOS, PHP, etc. My
> virtual CentOS machine is set up to mimic the production server as
> closely as possible. For example, the server is running Perl 5.8 and it
> will not be updated. Coding with Strawberry Perl 5.20 on my Windows
> machine doesn't guarantee compatibility.

1. Git is what the world now uses in place of Subversion for version
control (and source-code storage). I can't argue for the cloud thing.
It's like your theme park's roller coaster: if you don't trust it, don't
ride it, I guess. However, it's what everyone does. Bitbucket is free
hosting for private projects (unlike GitHub, another great place to go).
(And, there's always your thumb drive just in case.)

2. Even using Vim, which I do, or Notepad++, where would I put my code,
how would I control versions of it, how would I go back to a something
before I broke it, etc? By putting it into a version-control system, I
have that control plus I can also share it with others too, a major benefit.

3. Yeah, I'd do anything to avoid loading PHP on my host. ;-)

No, seriously, you're going to kill less than .5Gb between Eclipse and
Tomcat. You don't run Tomcat, you let Eclipse run it and only for the
moment you're running the debugger. Otherwise, it's not running on your
computer:

~/dev $ du -sh eclipse apache-tomcat-7.0.47
297M eclipse (latest Luna)
15M apache-tomcat-7.0.47


4. Sorry, can't help with the Perl thing, besides, you haven't really
explained what it is you're going to develop what you're going to
develop it in.

Best of luck!
Re: New to IDE's and frameworks. Need help setting up with remote system. [message #1692011 is a reply to message #1691964] Sun, 12 April 2015 00:00 Go to previous messageGo to next message
Russell Bateman is currently offline Russell BatemanFriend
Messages: 3798
Registered: July 2009
Location: Provo, Utah, USA
Senior Member

On 04/10/2015 07:32 PM, Steve Norton wrote:
> I've created a Bitbucket account with a repository named "Repo" and
> installed the Git plugins for Eclipse. I still don't understand how I
> would create a project and use the Bitbucket account to store the files.
>
> Using a simple "Hello World" java applet project as an example, how
> would I create it in Eclipse using Bitbucket and Git?


Okay. In Bitbucket, you create a new repo. It will give you the commands
you need to execute on your development host.

You can start with a folder full of code or an empty one.

Incidentally, these aren't questions for this forum, but I'm happy to
answer. Maybe we should take this off-line. Contact me at r u s s @ w i
n d o f k e l t i a dot com.

In the meantime, the Git learning curve can be steep, however, I have a
lot of notes and this page in particular might get you started. There
are certainly tutorials out there or you can ask me.

http://www.javahotchocolate.com/tutorials/git-everyday.html

Incidentally, I personally use Git from the command line and never in
Eclipse, but I'm just bizarre that way--a command-line sort of guy.

Now, to get on with Eclipse...

Once you've got a new project set up using Git, especially if you don't
have Java code in it yet, launch Eclipse and, once in the workspace you
want, do:

1. File -> New -> Other...
2. Look around for Dynamic Web Project (or Java Project, but, uh, you
said you wanted to develop web software)
3. Name the project (probably the very name you gave your folder in the
filesystem.
4. Don't take the default (which is to create the project in the
workspace), but tell Eclipse where your project is.
5. Click through taking the default and presto!

You're up and running in your new project. When you make changes,
Eclipse will decorate some of your file icons to signal that you've made
changes. You can either use the Team context menu to commit them or just
use a shell window to do it on the command line.

Does this help?
Re: New to IDE's and frameworks. Need help setting up with remote system. [message #1692015 is a reply to message #1692011] Sun, 12 April 2015 04:26 Go to previous messageGo to next message
Steve Norton is currently offline Steve NortonFriend
Messages: 4
Registered: April 2015
Junior Member
Thanks Russell! It's all helpful and I appreciate it greatly.

Git and Bitbucket will be my choice. It seems like it will be pretty straightforward once I learn the UI in Eclipse and CLI for Git.

My versioning was simply time-stamping copies of the old versions of my files before making changes. I won't be doing that any longer.

I'll be installing Tomcat. It's not that large and I didn't realize that it only executed on demand. Hopefully the other software I need will be the same (PHP, Perl, Python, etc.)

I don't have a single project that I want to start. There are several apps that I will be supporting in PHP, Python and Perl that already exist. Instead of maintaining the files in place, I will clone them to my project space and publish them as required. I also want to start learning Java and use the Vaadin framework as this is where it seems most of our in house tools are being developed - both for servlets and applets.

Again, I really appreciate the help. You've given me lots to chew on and it will keep me busy for a while.
Re: New to IDE's and frameworks. Need help setting up with remote system. [message #1692034 is a reply to message #1692015] Sun, 12 April 2015 13:45 Go to previous message
Russell Bateman is currently offline Russell BatemanFriend
Messages: 3798
Registered: July 2009
Location: Provo, Utah, USA
Senior Member

On 04/11/2015 10:26 PM, Steve Norton wrote:
> Thanks Russell! It's all helpful and I appreciate it greatly.
>
> Git and Bitbucket will be my choice. It seems like it will be pretty
> straightforward once I learn the UI in Eclipse and CLI for Git.
>
> My versioning was simply time-stamping copies of the old versions of my
> files before making changes. I won't be doing that any longer.
>
> I'll be installing Tomcat. It's not that large and I didn't realize that
> it only executed on demand. Hopefully the other software I need will be
> the same (PHP, Perl, Python, etc.)
>
> I don't have a single project that I want to start. There are several
> apps that I will be supporting in PHP, Python and Perl that already
> exist. Instead of maintaining the files in place, I will clone them to
> my project space and publish them as required. I also want to start
> learning Java and use the Vaadin framework as this is where it seems
> most of our in house tools are being developed - both for servlets and
> applets.
>
> Again, I really appreciate the help. You've given me lots to chew on and
> it will keep me busy for a while.
>

Given your direction, this may help:

http://www.javahotchocolate.com/notes/eclipse-jdk-tomcat.html
Previous Topic:need oracle DB 10g image
Next Topic:Crashed process becomes suspended in windows 8
Goto Forum:
  


Current Time: Tue Apr 20 03:11:36 GMT 2021

Powered by FUDForum. Page generated in 0.04015 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top