Getting started developing Java
Hi, I have decided to learn Java (having done mainframe development for a decade or so), and I already have the JRE installed, and was wonderng if I need to de-install the JRE before installing the SDK.
Thanks for any help. :-)
A suggestion - if the existing jre is earlier than 1.3.1_04, uninstall it. That's the current 1.3 version. 1.2 and earlier, and some of the earlier 1.3's (exact versions are documented, if needed) will not coexist with another jre on Windows due to Registry key conflicts. These are sorted out for the later versions.
Similar Messages
-
What hardware, software, etc. is required to get started developing with iOS? Looking to get started...
Thanks!You need an Intel Mac, at least OS X 10.6.8 (Lion if you intend full capability) and Xcode.
See http://developer.apple.com/ -
[Ask] Getting Started to Java Card 2.2.2 or 3.0
Hi Friends..
I'm currently tasked to create Java Card application that would be loaded to MIFARE / DESFIRE Card..
How to solve it?..
I have Omnikey Cardman 5321 SmartCard Reader, and i have MIFARE and DESFIRE Card.
I've tried to created simple Java Card application (Java Card 3.0)..
Actually, i prefer Java Card 3.0 because its based on Servlet.. (i'm more familiar with Servlet than Applet :) )
Could i load that application onto MIFARE / DESFIRE Card?..
Is there any Card that have supported for Java Card 3.0?..
or do i've to use Java Card 2.2.2?..
How to getting started with Java Card 2.2.2?..
is there any books that described about it?..
Thanks in advanced..hanks safarmer for your reply..
yes, i've compiled and run that code in Netbeans 6.9m1, but i got this message error :
Exception in thread "main" javax.smartcardio.CardException: connect() failed
at sun.security.smartcardio.TerminalImpl.connect(TerminalImpl.java:67)
at javaapplication1.Main.main(Main.java:32)
Caused by: sun.security.smartcardio.PCSCException: SCARD_W_UNRESPONSIVE_CARD
at sun.security.smartcardio.PCSC.SCardConnect(Native Method)
at sun.security.smartcardio.CardImpl.<init>(CardImpl.java:65)
at sun.security.smartcardio.TerminalImpl.connect(TerminalImpl.java:61)
... 1 more
Java Result: 1The card's status is SCARD_W_UNRESPONSIVE_CARD.
How to solve this? How to make the SmartCard become a "RESPONSIVE CARD"?..
Please help me regarding this..
Thanks in advance.. -
Getting started with Java and XML
Hi,
Although I am pretty familiar with Java, I am a total newbie with using it to parse XML. I have been reading quite a few tutorials so am getting a good understanding of it and am thinking of using the DOM model for my purposes.
What I haven't been able to find, however, is how I can actually get started with this. I have tried compiling a few examples and have been getting errors such as:
xmltest.java package javax.xml.parsers does not exist
xmltest.java package org.w3c.dom does not existetc etc...
It looks like these packages don't come with J2SE. Can anyone confirm this? Do I need to download and install the Java Web Services Developer Pack to solve this problem?
Finally, I know I will need an XML parser but have read that JDK 1.4 has it's own parser (Crimson). Is this adequate for parsing XML files or will I also need a parser such as Xerces?
Thanks so much for any help!Hi DrClap,
Thanks for the reply. I have JDK 1.4.1_02 installed on my server but the following error keeps coming up when I try to run my example:
Exception in thread "main" java.lang.NoClassDefFoundError: org/w3c/dom/NodeAre there any further packages I need to download in order to run Java with XML? I have read some people install JAXP and XERCES... are these necessary for parsing an XML document or should J2SE 1.4.1 be sufficient?
Thanks for your help!
Jill -
Getting started with java is dead link
otn home page > click 'Java' under 'Technologies' in left frame. > click 'Java' in the 'getting started box'. That link is broken.
Fixed; the correct URL is:
http://www.oracle.com/technology/getting-started/java.html
Cheers, OTN -
Getting started in Java Comm API
Hi This is all new to me. So I would really appreciate if anyone can help me figure this out..I am trying to read from the serial port using a VS4000 Image Scanner(Symbol). I want to scan a driver's license bar code. I believe PDF417 is the type of barcode to read driver's license. However, Im just curious if there is any code out there that actually parses the information out of the license. I need to get the lastname, firstname,dob,gender,address,drivers #, etc.. Does any one have any idea where I could get more information in how to scan a driver's license. I need more guidance in how to really do this. Although, I went to the introduction to Java Communications and found a example code "SimpleRead.java". However, I get some errors....
can anyone help..I have a nullpointer ..not sure how to fix it...
I get this error :
java.lang.NullPointerException
at SimpleRead.<init>(SimpleRead.java:64)
at SimpleRead.main(SimpleRead.java:53)
Exception in thread "main" Process terminated with exit code 1
Here is the original code :
import java.io.*;
import java.util.*;
import javax.comm.*;
public class SimpleRead implements Runnable, SerialPortEventListener {
static CommPortIdentifier portId;
static Enumeration portList;
InputStream inputStream;
SerialPort serialPort;
Thread readThread;
public static void main(String[] args) {
portList = CommPortIdentifier.getPortIdentifiers();
while (portList.hasMoreElements()) {
portId = (CommPortIdentifier) portList.nextElement();
if (portId.getPortType() == CommPortIdentifier.PORT_SERIAL) {
if (portId.getName().equals("COM1")) {
//if (portId.getName().equals("/dev/term/a")) {
SimpleRead reader = new SimpleRead();
public SimpleRead() {
try {
serialPort = (SerialPort) portId.open("SimpleReadApp", 2000);
} catch (PortInUseException e) {}
try {
inputStream = serialPort.getInputStream();
} catch (IOException e) {}
try {
serialPort.addEventListener(this);
} catch (TooManyListenersException e) {}
serialPort.notifyOnDataAvailable(true);
try {
serialPort.setSerialPortParams(9600,
SerialPort.DATABITS_8,
SerialPort.STOPBITS_1,
SerialPort.PARITY_NONE);
} catch (UnsupportedCommOperationException e) {}
readThread = new Thread(this);
readThread.start();
public void run() {
try {
Thread.sleep(20000);
} catch (InterruptedException e) {}
public void serialEvent(SerialPortEvent event) {
switch(event.getEventType()) {
case SerialPortEvent.BI:
case SerialPortEvent.OE:
case SerialPortEvent.FE:
case SerialPortEvent.PE:
case SerialPortEvent.CD:
case SerialPortEvent.CTS:
case SerialPortEvent.DSR:
case SerialPortEvent.RI:
case SerialPortEvent.OUTPUT_BUFFER_EMPTY:
break;
case SerialPortEvent.DATA_AVAILABLE:
byte[] readBuffer = new byte[20];
try {
while (inputStream.available() > 0) {
int numBytes = inputStream.read(readBuffer);
System.out.print(new String(readBuffer));
} catch (IOException e) {}
break;
Thanks a bunch!! :)
Jess...I actually got my scanner to work. I got my SimpleRead.java to work as an application. I set up this as an applet. Now my problem is that I the inputread reading from the serial port is not reading correct data always. It sometimes does scan correct data at times and other times it will not. So, I am not sure what is wrong. Does anyone have any clue why this could happen?
-
How to get started on java applet client/server game?
Hi,
I've googled, but didn't find any useful information about creating java applet client/server game. I've followed the example of Client/Server Tic-Tac-Toe Using a Multithreaded Server in Java How to Program from Deitel, but I when I tried on Applet, my cliet doesn't communicate with the server at all. Any help to get started with Applet would be great. Thanks!well, i decided to put in portion of my codes to see if anyone can help me out. the problem I have here is the function excute() never gets called. here is my coding, see if you can help. Notice, I'm running this on Applet thru html page. This shouldn't be much different than running JFrame in term of coding right?
Server.java
public void init()
runGame = Executors.newFixedThreadPool(2);
gameLock = new ReentrantLock();
otherPlayerConnected = gameLock.newCondition();
otherPlayerTurn = gameLock.newCondition();
players = new Player[2];
currentPlayer = Player1;
try
server = new ServerSocket(12345, 2);
catch (IOException ie)
stop();
message = "Server awaiting connections";
public void execute()
JOptionPane.showMessageDialog(null, "I'm about to execute!", "Testing", JOptionPane.PLAIN_MESSAGE);
for(int i = 0; i < players.length; i++)
try
players[i] = new Player(server.accept(), i);
runGame.execute(players);
catch (IOException ie)
stop();
gameLock.lock();
try
players[Player1].setSuspended(false);
otherPlayerConnected.signal();
finally
gameLock.unlock();
Client.java
public void init()
startClient();
public void startClient()
try
connection = new Socket(InetAddress.getByName(TienLenHost), 12345);
input = new Scanner(connection.getInputStream());
output = new Formatter(connection.getOutputStream());
catch (IOException ie)
stop();
ExecutorService worker = Executors.newFixedThreadPool(1);
worker.execute(this);
}So after worker.execute(this), it should go to Server.java and run the function execute() right? But in my case, it doesn't. If you know how to fix this, please let me know. Thanks! -
Hi, I've read some of the posts regarding newbies and resources (books) to learn Java. I do have a question about this. Most, if not all, of these books are old (3-7 years). So, if I get Head First Java or Thinking In Java from Amazon, won't they be out of sync with the current Java version? Will that matter? Are there any current books for beginners?
ThanksIf you're talking about links you've seen here, it's quite possible that they're canned links that regulars have been posting for the past several years that land on the editions of those books that were available when the links were created. If you google the titles, you may find there are newer editions.
Having said that, even if the latest editions are a few years old, the Java language has only had a couple of minor changes in the last 5 years or so. There were major language changes in 1.5 (a.k.a Java 5 or something), and very few language changes in 1.6 (a.k.a. Java 6 or something), so if the book at least covers 1.5--look for things like generics, autoboxing, typesafe enums, and annotations--it will be fine, especially for a beginner. Changes in 1.6 I think were mainly API and possibly tool changes, though you can google for something like java 1.6 release notes for details.
There are major language changes coming in 1.7/7/whatever they're calling it. I know early-access versions are available, but I'm not sure when the GA release will be. If you can find a book by one of the recommended authors that covers 7, you might want to grab it, but most of those language changes are more advanced features anyway, I think.
Also, do check out the tutorials:
http://download.oracle.com/javase/tutorial/getStarted/index.html
http://download.oracle.com/javase/tutorial/java/index.html
both of which are from
http://download.oracle.com/javase/tutorial/ -
How do I start developing Java Card?
I have downloaded java_card_kit-2_2_1and OCF 1.2. Is there any tools require for Java Card development that I missed out? The demo1, demo2 and demo3 was try to run but I still don't understand how do I can create a Java Card Smart Card. I want to develop a Java Card Smart Card for employee to take their attendance. The employee ID will be the a MUST in the Java Card Smart Card.
Please provide me guidance and help me out. Thank you in advance.I�d like to ask you guys where can i buy a Java Card
compliant smart card in the Web.
Based on your experience, which is the best one to
start with? (Gemplus, Schlumberger...)
Thanks in advance. (All this sounds really exciting)I am also a student and doing a final year project which uses smart card. I am using a Schlumberger (now is known as Axalto) Cyberflex 32K e-gate card and SDK 4.3 (the latest version is 4.5 if i'm not mistaken).. some say that the SDK is a bit buggy.. well, I dont have much choice because that is what my faculty gave me.. I admit that there are some bugs but until now, it doesn't give me too much of a trouble.
if you intend to buy their smart card, they have a wide range of it.. you can surf the available smart card here: http://www.axalto.com/products/smartcards.asp -
Help in getting started with java 3d
Hi everyone,
I am very new to java3d and I started learning it from few books and online tutorial.
However, in my very first program that I trying to code, I get error when I try to import following:-
import com.sun.j3d.utils.universe.SimpleUniverse;
The compilation error that I am getting is that "com.sun.j3d cannot be resolved". I have already installed java 3d. I can see java3d package in the Program Files/java directory.
Any suggestions would be greatly appreciated.
Thanks!On the instalation you have to use the default location, or the location where your SDK is installed.
Also, check if the CLASSPATH is defined correctly in your Environment Variables for JAVA_HOME and PATH.
You can also try to define the Java 3D jar files in you classpath before you try to run your file. Or can also try to use an IDE like NetBeans or Eclipse, it will help you a lot with your import declarations. -
Java Applet HelloWorld "Getting Started With Applets" example not working
Hi there,
It's been ages since I ran my Linux CentOS boot of Linux but I am going through the official oracle java applet tutorials, just every time I try and run the "Hello World" applet in Firefox 17.0.3 and I am running the Iced Tea thing for java applets.
Every time I try and run the example from the following code:
import javax.swing.JApplet;
import javax.swing.SwingUtilities;
import javax.swing.JLabel;
public class HelloWorld extends JApplet
// called when the user enters the html page:
public void init() // keep apps within the init() function very small as per the http://docs.oracle.com/javase/tutorial/deployment/applet/appletMethods.html
try{
SwingUtilities.invokeAndWait(new Runnable()
public void run()
JLabel myLabel = new JLabel("Hello World");
add(myLabel);
} // end running the application
}); //end of swing invokeand wait
} catch (Exception error){ // end user running the app in page
// System.err.println("GUI didn't work on initial run");
}It keeps bringing up the error "Start: Applet not initialized" I did google that basic error and from what I found I should consult the JavaConsole, I know the console was removed from the Firefox menu quite a while ago. So went to find a way of loading it using the IcedTea one but it keeps bringing up a load of errors in even trying to run that.
Is there anyway of sorting this out? I mean I have even tried installing the one on the oracle website, the plain JDK but nothing seems to work.
Is there anyone that can help me get applets working? I was even going to go as far as to reinstall my distro but I want to avoid that as much as possible.
Thanks and I look forward to any replies,
Jeremy.in the Getting Started with Java DB tutorial they
tell u how to set ur "DERBY_HOME" (what is that?).
once i press enter after typing this command:
set DERBY_HOME=D:\Java\Java
Phonebook\javadb in my command prompt do i get
any message or does it just go to the next line?type env or set or whatever in the command line to see what your environment variables are set to
they also tell u how to set ur "JAVA_HOME" (what is
that?). The Java installation you want to use
in their example they give u this: set
JAVA_HOME=C:\Program Files\Java\j2se1.4.2_05but in my java folder i have jdk1.6.0 and jre1.6.0
but no j2se1.4.2_05, so which 1 must i choose?It's up to you. I'd go with 1.6
also once ive done this: set
DERBY_HOME=D:\Java\Java Phonebook\javadb this
set JAVA_HOME=D:\Program
Files\Java\jre1.6.0 and this set
PATH=%DERBY_HOME%\bin;%PATH% and then type
sysinfo to verify that the variables were set
correctly i get these errors: 'D:\Java\Java' is
not recognized as an internal or external command,
operable program or batch file and '""'
is not recognized as an internal or external command,
operable program or batch file any help would
really be appreciated because this is really killing
me!you need to set your path variable - so something like:
set PATH=C:\Program Files\Java\j2se1.4.2_05\bin -
Getting started in Developing extensions for Dreamweaver CC
Hi,
i'm looking for info on how to get started developing extensions for DW CC. Specifically:
1. guides, tutorials
2. API reference
What i'm looking to be able to do is, among others:
1. add elements for inserting into the "insert" panel/menu
2. add panels.
3. be able to drag elements from that panel into the design
4. be able to identify tags in the web page as special tags. like how jquery UI tags are identified and have this little hovering label
5. be able to develop specialized property views for special tags. like how jquery ui tags have special properties, once i pressed that little hovering label thing.
One question that answering can really help - can say the guides for CS5 be a good starting point, and from there figure out what to do via the extendscript toolkit?
of are there later guides that i can use?
Regards,
Gal.Hi Gal,
I quote from an very old note in my library:
True, the Adobe documentation on extensions creation is very slim, especially if you are looking at the latest releases. What I think you should do is to look back to the origins. First of all the SDK offers great examples (from 2003):
http://www.adobe.com/cfusion/exchange/index.cfm?event=extensionDetail&extid=1009962
Also there are two great books: Dreamweaver MX Extensions by Laura Gutman and Building Dreamweaver 4 & UltraDev 4 Extensions by Tom Muck and Ray West. I believe you may read free chapters online in places such Safari library or Google books.
The books are old, you have to understand and adapt for the new versions, but in essence everything stays the same.
... and here another Adobe link:
http://help.adobe.com/en_US/dreamweaver/cs/extend/dreamweaver_cs5_extending.pdf (see page 2 "Creating an extension")
On the other hand I'm sure you could ask well known, long-established developers. Some of them roam through our forum.
Hans-Günter -
Perhaps someone wouldn't mind helping with some simple questions....
I'd like to get started with Java Server Pages but I am finding the process absolutely bewildering.
At the moment I have a site running Jrun 3.1 and I use J2SE, so I think I will have my work cut out just to get started, though perhaps someone can enlighten me.
Jrun 3.1 doesn't even implement Servlet API 2.3 and whenever I hear talk of Java Server Faces I seem to hear J2EE. However I have no great wish to update Jrun with our server running smoothly (touch wood) and changing from J2SE to J2EE seems like yet another big change.
I had a look at changing to Tomcat, but again why do so when things are running smoothly as they are?
Ok, so I've been looking at Java Web Services pack, which seems to solve some of the problems and the blurb says:
"Note that the Java WSDP is an integrated toolkit that you can use to develop and deploy not only Web services, but also Web and XML-based applications".
But presumably I need a servlet container behind it and Jrun 3.1 is probably too old, is that right?
Ok, at this point perhaps I could leave my existing applications running happily in Jrun 3.1 and J2SE, install Tomcat and J2EE separately and run any new applications alongside in the new environment. I've got 1GB of memory, and then maybe one day I move over the old applications.
Perhaps somebody could give me some pointers, given my situation.
Thanks for your time.JavaServer Faces requires an environment that supports at least Servlet 2.3 and JSP 1.2. It will not run on any server that supports Servlet 2.2 or earlier only. Any J2EE 1.3 or later app server meets these criteria, but it's not required (for JavaServer Faces) that you have a full J2EE server unless you need those facilities (such as EJBs) for your applications.
The Java Web Services Developer Pack includes Tomat 5, or you can use an existing Tomcat installation (must be 4.1 or 5.0). Tomcat is pretty easy to set up (especially if you just use it standalone, and not try to run it behind the Apache HTTPD server).
Craig MClanahan -
How to get started on JavaCard 3.0 development?
Hi,
I wasn't able to attend JavaOne, but from what I understand, some lucky developers were able to write JavaCard 3.0 apps to compete in the contest that was held at JavaOne. So, how can I get started in JavaCard 3.0 app development? I can't find anywhere where I can download an SDK or buy compatible cards.
Thanks,
Brucedaddyhop wrote:
I but I want to use the new features that in 3.0 that developers had access at JavaOne in order to participate in the contest. Where's the link for the stuff that folks had to play with at JavaOne?http://java.sun.com/javacard/contest/index.jsp
http://java.sun.com/javacard/contest/download.jsp
http://developer.gemalto.com/home/java-card-3/developer-contest/jc3bot-installation-instructions.html
http://developer.gemalto.com/home/java-card-3/developer-contest/jc3bot-development-guide.html
http://developer.gemalto.com/nc/forums.html
http://javacard.vetilles.com/2008/05/08/writing-a-java-card-3-program/
http://blogs.sun.com/javacard/entry/not_an_architecture_diagram -
Getting started in Web Forms development.
Hi There,
I hope this is the correct form to be posting in.
Ok, I would like to get into developing Oracle web forms.. I'm not really sure if thats the correct name. Below is an image of exactly what I want to develop. It is loaded up through a Java applet in the web browser but then loads up into a seperate window.
http://www.excel4apps.com/oracle/downloads/glwand/3.90/user_guide/images/image198.jpg
Somebody told me that I need to setup a database server along with an application server for the forms.
I've been on the Oracle download site but to be honest there is a lot of stuff on there and I don't know where to start..
I'd appreciate any advice on what is needed to get started and any tutorials people might be aware of. Can I start into this type of development free of charge or will I need to buy some licences for some of the software?
Thanks in advance.
Regards,
ConorThe image you posted is from eBS (Oracle Applications) and specifically setting profile values in this system.
You can find info:
http://www.oracle.com/technetwork/documentation/applications-089559.html
the relative forums for all products of eBS are in:
http://forums.oracle.com/forums/category.jspa?categoryID=3
greetings,
Sim
Maybe you are looking for
-
Dynamic sql reurns no data when multiple values are passed.
(Dynamic sql returns no data when multiple values are passed.) Hi, While executing the below dynamic sql in the procedure no data is returned when it has multiple input values. When the input is EMPID := '1'; the procedure works fine and returns data
-
How to configure static NAT on two internal interfaces?
Cisco Adaptive Security Appliance Software Version 8.4(2) I need to NAT an IP from my VPN DMZ (192.168.100.26) to two different internal DMZs, DMZ-1 (10.3.255.15) and DMZ-2 (10.3.255.15). Resources in each of those DMZs need to get to that resource i
-
How to restore a disabled ipad mini
how to restore a disabled ipad mini
-
ACE module - Qos - set ip tos #
All, Trying to mark traffic to/from L4 rules in the ACE. Documentation (like always) says it's really easy. Mark traffic by using the "set ip tos <value>" command in Policy/Class configuration. Ok, so I do this, set ip tos 24. Enable qos globally o
-
I want to install an updated version of adobe flash player. I am being asked for my password which I have forgotten. What is the best way to reset my password on my macbook pro?