new to java

Posted on 2005-03-19
Medium Priority
Last Modified: 2013-11-23
I'm trying to make a program that will connect to the Gnutella network, but I've never used java before... I primarily do visual basic.

So I came across something called JTella. It is java code for a servant to connect to Gnutella... so my question is, how do I compile it ? and is there a way to compile it for my pocket pc?
Question by:pugandjody
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 3
LVL 29

Accepted Solution

bloodredsun earned 375 total points
ID: 13584083
>>how do I compile it ?

Download the Java 2 Standard Edition Java Development Kit (J2SE JDK, currently as version 1.5 aka 5.0) from Sun http://java.sun.com/j2se/1.5.0/download.jsp and better yet, download an IDE to develop in: either NetBeans (same link as previous) or Eclipse (my preference, http://www.eclipse.org/). All the above are free. I would recommend that you also go the java section of the sun.com site and try to turtorials to get started.

>>is there a way to compile it for my pocket pc?

To compile it for your pocket pc you would also need to download the Java 2 Micro Edition (J2ME).

Author Comment

ID: 13584109
I downloaded J2ME Wireless Toolkit 2.2 after I downloaded Java 2 Standard Edition Java Development Kit, is that the same as Java 2 Micro Edition (J2ME) ?
LVL 29

Expert Comment

ID: 13584136
No apparently it's not, you don't need to download J2ME if you have downloaded the J2ME WT

see here from the docs:

System Requirements - Software

    * Microsoft Windows XP or (unsupported) Linux-x86
    * JavaTM 2 SDK, Standard Edition (J2SE SDK), version 1.4.2 - if you plan to do actual development, or JavaTM 2, Standard Edition Runtime Environment (JRE), version 1.4.2 - if you only plan to run the demonstration applications.

      To download the SDK or JRE you want, go to http://java.sun.com/j2se/downloads.html
PowerShell Core for Advanced Linux Administrators

Understand advanced principals around Powershell Core with a focus on the Linux Administrator.  This course covers how to administer numerous environments across multiple platforms including Linux, Azure, AWS, and Google Cloud from a single shell instance.


Author Comment

ID: 13584185
I imported the project i'm working with into netbeans and tried to run it... but i get an error saying that there is no main class. So needless to say I'm confused...

So that you can help me more, I have posted the project on the internet so you can download it...
Heres the link: http://www.aimprofiletracker.com/jtella-07.zip
LVL 29

Expert Comment

ID: 13584214
no main class exceptions result from trying to run an application that has no main method. The signature for a main method is

public static void main(String[] args)

so check for that first.

Author Comment

ID: 13584227
I checked for that and I found it... but when I run it it just builds it and nothing happens.
can you please try to compile it and see if it works for you... sorry this is the first time I've used java... i'm a visual basic guy.

Featured Post

Get 15 Days FREE Full-Featured Trial

Benefit from a mission critical IT monitoring with Monitis Premium or get it FREE for your entry level monitoring needs.
-Over 200,000 users
-More than 300,000 websites monitored
-Used in 197 countries
-Recommended by 98% of users

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Java had always been an easily readable and understandable language.  Some relatively recent changes in the language seem to be changing this pretty fast, and anyone that had not seen any Java code for the last 5 years will possibly have issues unde…
In this post we will learn different types of Android Layout and some basics of an Android App.
Viewers learn about the scanner class in this video and are introduced to receiving user input for their programs. Additionally, objects, conditional statements, and loops are used to help reinforce the concepts. Introduce Scanner class: Importing…
Viewers learn how to read error messages and identify possible mistakes that could cause hours of frustration. Coding is as much about debugging your code as it is about writing it. Define Error Message: Line Numbers: Type of Error: Break Down…
Suggested Courses
Course of the Month15 days, 3 hours left to enroll

771 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question