Java and Netbeans

Does anyone can help me out this, I am learning Java program language but I want to run it with Mac OS Lion. Which Java kit and Netbeans I shoudl download it ? and Where to?
Another things abt Java - when I go to application, search, show the java preference. Is it a JDK that I should click on it and download??
Thanks for advance!

Wrong reply-to ... got caught up in the content of my response ... darn it!
I will only add to Barney's answer about NetBeans:  NetBeans will also download with "GlassFish", an "application server" for later stages with Java EE, but not needed for initial learning.
I will add this, with apologies if you already know it ...
I started learning Java in 2006, from an O'Reilly book (not saying O'Reilly books beat all others, just saying) ...
I made it through 450 pages to get *something* running in about 1 month, but left several sections of the book that I did read behind as "learn later".
Lately I have been trying to learn Java EE and extending to SOA, with emphasis on Oracle products.  And thougth I would revisit the basic primers (560 pages of language basics) for the "1 or 2 things I missed".
Oy vey
Java took a week + to re-read the basics given the "quirks" that make Java safe.  Several subjects that slowed down the reading but were worth the effort:
Thread-safe/synchronous operations
The role of the JVM
Wrappers as "object view of primitives"
Generics (those will blow your mind)
Class relationships (inner classes, anonoymous inner classes), interfaces which "kind of" are classes
In short, DO NOT underestimate the complexity and "quirky" parts of Java.  You cannot even begin to compare the small-complexity of C and the deeply-complex nature of Java.
That being said ... not in any way impossible to learn.  Just do not think "C-simplicity" when entering.

Similar Messages

  • Error while installing java and netBeans on Mandriva 2008 linux

    Here are all the lines which are printed on my console during the installation
    [beloo@localhost Desktop]$ ./jdk-6u4-nb-6_0_1-linux-ml.sh
    Configuring the installer...
    Searching for JVM on the system...
    Preparing bundled JVM ...
    Extracting installation data...
    Running the installer wizard...
    /usr/share/themes/Ia Ora Free/gtk-2.0/gtkrc:9: error: lexical error or unexpected token, expected valid token
    [beloo@localhost Desktop]$
    If anybody knows the solution please help me!
    ps: when i install java separated from netBeans i can succesfully install java, but NetBeans install does not starts.
    thx

    Here are all the lines which are printed on my console during the installation
    [beloo@localhost Desktop]$ ./jdk-6u4-nb-6_0_1-linux-ml.sh
    Configuring the installer...
    Searching for JVM on the system...
    Preparing bundled JVM ...
    Extracting installation data...
    Running the installer wizard...
    /usr/share/themes/Ia Ora Free/gtk-2.0/gtkrc:9: error: lexical error or unexpected token, expected valid token
    [beloo@localhost Desktop]$
    If anybody knows the solution please help me!
    ps: when i install java separated from netBeans i can succesfully install java, but NetBeans install does not starts.
    thx

  • I'm new to java and I need some quick help with NetBeans.

    Hi. To whomever can help here's the problem. I've been trying to install netbeans ide 5.0 on my computer for a while now and i can't seem to find out what is wrong. I'm in a java programming course and i need the J2SE Developement Kit 5.0 Update 7 and NetBeans IDE 5.0 Installer on my comp. Whenever i go to install it, it can't automatically create a directory and has erroe null in place of it. Whenever i made a new directory for it a page would come up telling me all of the errors during the installation which are null. Since i have administrator privelages and plenty of free space on my hardrive.

    Hi,
    I want to suggest you that
    1.please check if any prerequisite is require before installing the NetBeans IDE,i hope there is nothing like that except proper jdk on your machine.
    2.if you already having JDK on your machine check for the compatibility of that jdk version with the required NetBeans IDE version.
    3.follow the steps provided to install the NetBeans IDE 5.0 for that refer the below link
    http://www.netbeans.org/community/releases/50/install.html
    hope you will get rid of the problem .....
    ---Vidya

  • Installation of J2SE V1.4.2 and NetBeans Java 2 Platform, Standard Edition

    I downloaded J2SE V1.4.2 and NetBeans IDE 3.5.8. After this very long download, my ISP disconnected. I re-connected, but am unable to install the download. Please help.
    alinda78

    I downloaded J2SE V1.4.2 and NetBeans IDE 3.5.8.
    After this very long download, my ISP disconnected.
    I re-connected, but am unable to install the
    e download. Please help.
    alinda78

  • Errors when using tomcat and netbeans combo.[Solved]

    Hi I'm trying to set up a netbeans/tomcat7 development environment for servlet development.
    I have tried this on 2 machines without any success.
    The steps I have followed are as follows.
    First I installed tomcat7 and netbeans from using pacman, then to be able to configure tomcat from netbeans I made the config files write permission 777, as it's just a development server security is not an issue.
    From there I started up netbeans started a new project and set the server to tomcat and pointed the Catalina home dir to /usr/share/tomcat7.
    When I try to run the example jsp project I get the following error:
    description The server encountered an internal error () that prevented it from fulfilling this request.
    exception
    org.apache.jasper.JasperException: java.lang.IllegalStateException: No Java compiler available
    org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:584)
    org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:392)
    org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:389)
    org.apache.jasper.servlet.JspServlet.service(JspServlet.java:333)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
    root cause
    java.lang.IllegalStateException: No Java compiler available
    org.apache.jasper.JspCompilationContext.createCompiler(JspCompilationContext.java:226)
    org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:636)
    org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:358)
    org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:389)
    org.apache.jasper.servlet.JspServlet.service(JspServlet.java:333)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
    I've spent the last couple of days trying to find any information on this but I cant find anything, so any advice would be much appreciated.
    Last edited by darkclown (2011-12-01 05:15:23)

    From the error, it appears that there is no JDK installed - only a JRE, could that be the case? If you do have a JDK installed, then Tomcat is not finding it.
    I would also not run this on the openJDK, in case you are doing that. I would use the proprietary Oracle/Sun JDK. It's in the AUR, or simply download it from Oracle.
    I was not even aware that netbeans and tomcat are available from pacman. I always "install" those myself manually (i.e. unpack them into a folder). They are simply Java apps that can be installed anywhere, as long as you point them to a valid JDK.

  • Problems with JDK and NetBeans

    Hi, I've just started to learn java and I'm having some problems to compile projects. I installed JDK 1.5.0 (with NetBeans 4.0 beta 2), but when I try to compile any program (including the sample ones) I get the following error message:
    C:\Documents and Settings\F�bio\JavaApplication2\nbproject\build-impl.xml:34: java.lang.IllegalArgumentException: Malformed \uxxxx encoding.
    Anyone knows what might be happening?
    By the way, I've already tried to reinstall the whole package (removing everything first), but it didn't help. Also, before installing this version I was using JDK 1.4.2 just fine, but now none will work .
    Thanks in advance

    I'll try that!
    By the way, I tried commenting out that line in the xml file and it worked! Still I have to do this to every new project I create, but it's a work-around =D
    Thanks for your help

  • Java and Mac OS X

    Hello,
    I have some problems in here while developing in Java using Netbeans 8 with JDK 8.5.
    It happens that sometimes I face some weird behavior from Java, for example, I have a small window with a button when pressed call two more windows with 500x500 bounds, and the problem is that after few changes in the code these windows are not appearign correctly, they're totally without any bounds and the X and Y position in the screen are also wrong, appearing in the very corner of the left side of my screen. I am sure I did not touch the code from these.
    I know Apple is trying to get rid of Java, so I wonder if it has something about it.
    Thank you.

    I have found Mac OS X to be very Java friendly for several reasons...
    Out of the box, OS X has at a minimum version 1.3 of the JRE installed in addition to command line tools like javac, java, jar. Panther, 10.3, has 1.4 installed out of box. The JDK/JRE for the Mac is available via the Software Updates capability directly from Apple. That is, you obtain JRE upgrades in the same manner in which you obtain updates on the OS itself. And it's simple and painless to do.
    I've used JEdit and BBEdit and also XCode. It sounds like XCode is available via download (good to know..). I installed the Xcode tools from a CD that came with the box CD set for my Panther (10.3) OS. With the Developer tools, I can use a program called Jar Bundler to create "*.app" files for my Java applications so that they run with a native look and feel on OS X - (I mean having an icon in the dock for the Java app, and the icon bounces up and down like the others when the app executes etc). This makes deployment easy. To the best of my knowledge, that kind of convenience does not exist on Windows. For windows OS I think it is necessary to obtain install and configure a separate third party application which creates the "exe" file for the java application.
    All Browsers on Mac OS X are set up to use the JRE on the system. The drawback is that only Safari right now is capable of using version 1.4 of the JRE. All other browsers, Mozilla, IE 5.2, OmniWeb, etc will use version 1.3. The good news is that configuring for the plugin is done behind the scenes, automatically. No messing with Tools menu or creating symbolic links are necessary in order to have the browser find the jre.
    Here are some links you may wish to browse
    http://www.apple.com/macosx/features/java/
    http://www.javaworld.com/javaworld/jw-01-2002/jw-0118-macworld.html
    http://www.onjava.com/pub/a/onjava/2002/09/25/macosx.html
    http://www.pepsan.com/macosx/java.html

  • Is it possible to have java and javafx project types combined ?.

    Today, in NetBeans (not sure about the eclipse world) one has to decide between a "Java" project or a "JavaFX" project.
    Why can't these two be combined ?.
    For e.g, when I try to add JavaFX files (script, classes) to a Java Project it fails to compile. I poked around Netbeans and googled a bit and could'nt find any answers.
    The only way that I can make it work is to create a JavaFX project and Java code to it.
    In situations where one is attempting to "add" JavaFX to an existing Java/Swing app the current approach is too weird and abnormal.
    For e.g Amy Fowler's excellent guide http://weblogs.java.net/blog/2009/06/10/insiders-guide-mixing-swing-and-javafx should be such that I should be able to "simply" add JavaFX code and NetBeans should take care of the plumbing. (calling javafx compiler, adding the right jars for runtime ...)
    /rk

    I'm not sure how JavaFX works, but it is built rather differently from "normal" Java (Single threaded, high level of abstraction from the actual implementation, etc). It is easy to use Java classes inside a JavaFX class, but the reverse is not true.
    Plus, though this part is technically fixable, some classes installed inside the JRE don't seem to work by default in a netbeans JavaFX project.

  • Basic doubts regarding ssl with tomcat 5.5  and netbeans 5.5 for WSDL?

    I've just started my preparation of web services. I'm using JAX-WS to create my web services and client. I'm using Tomcat 5.5(not apache axis) to deploy my web services over https and i'm able to do that. I've configured my keystore and keystorepassword in tomcat's server.xml. After i've configured my web.xml to choose security type(choosen CLIENT-CERT). I'm able to run my web services over https. I'm using IDE as netbeans 5.5.
    But to access this web service from core java client, i'm unable to do it. I've configure my jvmargs in the project-properties-run tab of netbeans and have given keystore,keystorepassword,keytrust,keytrustpassword. After all this i've also export it to the trustcacerts of tomcat. I want to run this using jax-ws. I've searched for many tutorials of this jax-ws , but all were in vain. Eventhough i've checked in java.dev.net site for tutorial but didn't find for my need. Everywhere they metioned on glassfish,wsit or some other technologies.
    Right now i'm totally confused. I've read some little bit things of all these things and finally land it in the middle of the sea. Could anyone provide me the basic concepts or any url for this.
    After all this i'm getting exception as : https hostname should be <localhost>. I'm totally confused what to do.
    One more thing i just wanted to know that i'm diving into the jax-ws technology, is that right to buil an application on this or should i use JAX-RPC. Which one is better for accessing the url and should be secured from security propects. Also tell me is that possible to build web services on https with using tomcat5.5,jax-ws and netbeans 5.5 or should i need some technology for start up.

    Any kind of help are welcome.

  • What are the better IDE's for Mac (Java and C++)?

    I'm switching over to Mac's here soon and I'm curious about which products are the best, from others' experiences, for developing Java and C++ applications. On Windows I used NetBeans and IntelliJ (although not as much), but I'm curious if there is Mac specific software that someone might recommend.

    Both of the above work fine on Mac (I used IntelliJ exclusively for Java development).  For C++ I use Qt Creator and sometimes Xcode.

  • Build java and javafx applications

    Hello everybody! Currently, I am building a netbeans project that consist of java and javax applications and the questions are :
    1. How to call java object in javafx object or it reverse. Which one the better?
    2. How to compile and run the project that consist of java and javafx applications.
    Help me, please!Thank's

    Also, If you want to call JavaFX methods from Java you can use interface and have the JavaFX class extend it (interfaces are extended in JavaFX)
    For example, make interface FXAdapter.java
    interface FXAdapter {
         public void modifyLayout();
    }And in your FX class
    public class FXClass extends FXAdapter {
         public override function modifyLayout() : Void { /*Implementation*/ }
    }Now in your java class you can ask for FXAdapter as a parameter and pass a FXClass object

  • JavaFX and NetBeans Integration Request

    How about it team? Please integrate SB into the next release of NetBeans (7.4.1).
    Yes, I have seen the pages at: Using JavaFX Scene Builder with Java IDEs: Using Scene Builder with NetBeans IDE | JavaFX 2 Tutorials and Documentation
    OK so I am able to call SB from inside the NetBeans 7.4 IDE.  This is not integration. Its a shortcut. I mean, why do we have two separate tools? NetBeans IDE and SceneBuilder. We don't pop open SQLDeveloper when we work on queries, so why pop open SB?
    Integration would be that the capabilities of the SceneBuilder would be available IN the IDE such as they are for Swing or for databases.    Integration means you would have the palette available with the JavaFx components.  It would be the current version of SB. ( When SB2 comes out, it would have all the functionality of SB2 )
      From reading the scant information out there, SB2 is in development, why not integrate it into the IDE and make it one spot to do your development?  Take JavaFx mainstream and integrate it into the IDE for real.

    The Scene Builder team is working to create a product that integrates well with many IDEs, and NetBeans is one of them. As you might have heard from the last JavaOne, we are working on an API, called Scene Builder Kit, which will allow the integration of Scene Builder panels and functionality directly into the GUI of an IDE.
    Based on this, we hope to collaborate with the NetBeans team -- and with teams from other IDEs -- to provide as tight an integration as we can, but ultimately this is a partnership which requires work from both the IDEs and SB teams.
    As crucial as we see a tight IDE integration for our users' productivity, we feel that a SB standalone tool is also needed for those of our users who do not wish to use an IDE because, e.g., they focus solely on the layout and styling of a GUI.
    Thanks for your feedback, please keep it coming, this helps us.

  • JDeveloper and Netbeans ebooks

    Can anyone help me out by sending me ebooks on JDeveloper (Beginners, Intermediate and Advance) and Netbeans (Beginners, Intermediate and Advance) to my email [email protected] I so much more need them to start using JDeveloper and Netbeans as a professional. Also with all necessary Java books that will turn a dummy to Guru programmer.

    No Java Books will turn a dummy into a Guru, only experience can do that.

  • Eclipse and Netbeans claim ....

    Both Eclipse and Netbeans claim to be the best / most powerful IDE for Java. Which is telling the truth ?

    However, call me paranoid, but it is as if there is a
    conspiracy being propagated in the Java developer
    community because I can't for the life of me find a
    semi-decent tutorial on how to use - and more
    importantly, setup - the developer tools
    available such as Ant, Netbeans etc.Didn't you find the manual of Ant for example, which explains exactly how to install and use it, or did you find it but don't understand it? If you have a specific question about something you don't understand, please ask it here.
    If only Sun would write a so-called meta-tutorial
    explaining in idiots terms how to get the bloomin'
    tools to work and how one should approach software
    development then my productivity would be
    significantly improved!! It is the most frustrating
    thing: knowing the language but not being able to use
    it.Start with the First Steps Tutorial. That explains in detail how to setup the JDK and compile Java programs from the command line.
    After you have learned that, download and install Ant and read the manual, and look at example build files to learn how to write a build file yourself. Learn how to use Ant from the command line.
    Then download and install Netbeans. Read the Quick Start guides for Netbeans to start learning how to use it.
    All the information you need is readily available, you just have to read it and experiment with the stuff to learn how it works. It's not as difficult as it seems - just play with it for a few hours and you'll start to see how it all works.

  • Mutual SSL and NetBeans/JCAPS 6.2

    Hi all,
    i have a question about Mutual SSL for WebServices and NetBeans 6.5.1/JCAPS 6.2 and Metro 1.5 libs
    I have created the Webservice and client example projects in the WSIT tutorial: CalculatorWS and CalculatorClient (https://wsit-docs.dev.java.net/releases/1.1/WSITTutorial.pdf)
    I have also followed the guidelines in the pdf document "http://mediacast.sun.com/users/Michael.Czapski-Sun/media/CH05_WSSecurityExploration_r0.3.2.pdf" at paragraph 5.9 to make the WebService Mutual SSL. But for some reason it does not work in my opion as Michael is expecting at the start of paragraph 5.9.
    In the client logfile i see that the server certificate is trusted, but in the server log i dont see such message. How do i know for sure that its mutual SSL?
    Did someone else get the Mutual SSL working as described by Michael in paragraph 5.9?
    Solutions are welcome.
    Regards,
    Madere.

    This is a problem reported by many; search the forums for their experiences and solutions.

Maybe you are looking for

  • Error in creating ARE1 document

    while creating are1 document with reference to excise invoice it is showing this excise invoice is meant for local/deemed export so no nt able to proceed further. actually while creating excise invoice i tried to change local option to export under b

  • Windows 7 Problem Bootcamp

    Ok so I have a 2009 27" IMac. I already had a OEM copy of Win 7 partitioned and running perfectly fine for months. Recently I was sent a message from Apple about needed to bring comp in to get a possible faulty HD swaped out. I bought a Time Capsule

  • Shared Photo stream doesn't work? (note: Photostream does)

    I Have the new 5s and I set up iCloud. My Photo Stream works fine. If I take pictures on my iPad, they show up on my iphone no problem. BUT I noticed that none of the SHARED photo albums I had before are showing up on my iPhone. Also, if I create a s

  • Search in a folder of pdf files

    Is it possible to proceed informations search by keyword from a folder without having to open it before? This folder contains several text documents files in pdf format.

  • Can i switch providers if I am staying in another country?

    I'm going to be in Austrlia for 4 months. Anyone know if can switch providers for my iphone while I'm there? I'm certainly not going to pay international rates for that long.