1 2 3 4 > >>   Sort: Date

Downloading and Installing JDK 1.8.0 on Windows
This section provides a tutorial example on how to download and install JDK 1.8.0 (Java SE 8), which contains the HotSpot 1.8 JVM, on a Windows XP system. A simple Java program was entered, compiled, and executed with the new JDK installation.
2017-11-04, 47518👍, 36💬

💬 2017-11-04 ali: thanks for file

💬 2017-10-16 jahan zeb: no comment

💬 2017-10-16 jahan zeb: nO comment

💬 2017-08-03 Herong: Hamza, can you try to follow the steps given in this tutorial to install Java?

💬 2017-07-26 Hamza Iqbal: How we install java ...??

(More comments ...)

Downloading and Installing JDK 1.7.0 on Windows
This section provides a tutorial example on how to download and install JDK 1.7.0 (Java SE 7) on a Windows XP system. A simple Java program was entered, compiled, and executed with the new JDK installation.
2017-09-26, 44174👍, 46💬

💬 2017-09-26 good: good

💬 2017-07-26 madhanlal: Just to learn

💬 2017-07-03 karthick: Java software for pc 1.7.0_03

💬 2017-04-01 zjheuzyr: thanks

💬 2017-03-23 Tamilselvan: good

(More comments ...)

Using java.net.HttpURLConnection to Send SOAP Messages
This section describes steps to follow if you want to use the java.net.HttpURLConnection class to send out a SOAP XML message.
2017-10-01, 22704👍, 13💬

💬 2017-02-26 roberto: ok

💬 2016-05-21 Herong: sss, are you referring to the example program in Using HttpURLConnection to Call GetSpeech SOAP 1.1?

💬 2016-05-19 sss: it only worked after changing to con.setRequestProperty("Content-Type ","application/soap+xml; charset=utf-8"); and without usin...

💬 2015-12-29 Marcos Volpato: This worked for me, thanks a lot

💬 2015-08-31 King Of Goats!: goat!

"keytool -export/import" - Exporting and Importing Certificates
This section provides a tutorial example on how to use the 'keytool -export' command to export certificates out of a 'keystore' file. The 'keytool -import' command can be used to import certificates into a 'keystore' file.
2015-08-15, 20946👍, 1💬

💬 2015-08-14 Jay: This is exactly what i was looking for... thank you...

SslSocketClient.java - SSL Client Socket Example
This section provides a tutorial example on how to write a sample program to create a SSL client socket to connect to a SSL server socket. The connection will fail if the server's certificate is self-signed.
2016-06-10, 11603👍, 3💬

💬 2016-06-10 Herong: Algérian, did you find what you were looking for here?

💬 2016-06-08 the Algérian: Je te jure que aprés une semaine de recherche j'ai pu trouver ce que j'étais d'entrain de chercher. Bravo et Bon continuation.

💬 2016-05-27 rono: very good your code

Using WSDL2Java to Generate Web Service Stub Classes
This chapter provides tutorial notes and example codes on WSDL2Java. Topics include using the WSDL2Java tool included in Axis2 1.4.1; generating client side stub classes; using stub and data type classes; testing stub classes with XML document and RPC method based Web services.
2017-01-20, 10010👍, 7💬

💬 2017-01-20 Stephen: Hi , thanks for this tutorial

💬 2016-02-24 Herong: NfeDownloadNFStub, do you need any help on your WSDL document?

💬 2016-02-23 NfeDownloadNFStub: <?xml version="1.0" encoding="UTF-8"?> <wsdl:definitions xmlns:s="http://www.w3.org/2001/XMLS chema"xmlns:soap12="http://s...

💬 2015-12-18 prem: thanks

HttpsHello.java - HTTPS Server Test Program
This section provides a tutorial example on how to write a HTTPS server test program, HttpsHello.java. It writes back a simple Web page using the HTTPS protocol.
2017-09-20, 9188👍, 23💬

💬 2017-09-20 Herong: Sandeep, you need to create a server certificate in a .jks file first.

💬 2017-09-08 sandeep kumar shukla: I am getting following error while I run the servier program. java.io.FileNotFoundException: herong.jks (The system cannot find ...

💬 2016-09-21 Test: Hello. How are you?

💬 2016-05-21 Herong: Anthony, this example program is missing a logic for communication start and stop conditions on both server and client sides. Ad...

💬 2016-05-19 Anthony: P.S. If you want to claim copyright then you should give permission to use the fragments in applications, which is the point, I ...

(More comments ...)

SwingHello.java - My First Swing Program
This section provides a tutorial example on how to a simple Java Swing program. SwingHello.java is my first Swing program that displays a blank window with 'Hello world!' in the window title bar.
2017-09-05, 8715👍, 4💬

💬 2017-09-05 jack: good

💬 2016-01-27 Herong: Neha, you can just put the following line into your batch file and run it: java -cp . SwingHello

💬 2016-01-26 neha: how to run above program through windows batch files

Downloading and Installing JDK 1.6.2 on Windows
This section provides a tutorial example on how to download and install JDK 1.6.2 (Java SE 1.6 Update 2) on a Windows XP system. A simple Java program was entered, compiled, and executed with the new JDK installation.
2017-02-27, 7494👍, 14💬

💬 2017-02-27 sireesha: thanks

💬 2017-02-27 sireesha: Hi, I am admire to this site

💬 2017-01-29 hiiii: hi

💬 2016-10-17 Abhishek: Thanks

💬 2016-02-12 Fayaz: Jdk 1.6

(More comments ...)

Creating the First JAR File - hello.jar
This section provides a tutorial example on how to create a JAR file with the 'jar' command.
2016-03-02, 7381👍, 1💬

💬 2016-03-02 luis: algun comentario

Downloading and Installing JDK 1.8
This section describes how to download and install Java SE Development Kit (JDK) 8u45 on a Windows system.
2017-10-09, 5900👍, 5💬

💬 2017-10-09 Ivan: Thanks!

💬 2017-04-03 prathamesh: greaT

💬 2016-10-24 azeem: thanksa

💬 2016-01-11 hari prasath: collage use

getSelection() - Getting Selected Button
This section provides a tutorial example on how to use the getSelection() method to know which button is selected in a button group.
2016-06-02, 5749👍, 3💬

💬 2016-02-22 aaa: God is the greatest

💬 2016-02-22 aaa: we are here to learn

Generating Client Side Stub Java Code
This section provides a tutorial example on how to run WSDL2Java to generate client side stub Java code from an existing WSDL document. The generated stub class will have a package name borrowed from the target namespace of the Web service.
2015-11-25, 5360👍, 1💬

💬 2015-11-25 thakur: nice

BankingThread.java - Synchronization Sample Program
This section provides a tutorial example on how to solve the banking synchronization issue with Java synchronized methods.
2017-01-21, 5310👍, 5💬

💬 2017-01-21 Herong: Abhishek, I think this is the simplest example to demonstrate multi-threading and synchronization.

💬 2017-01-18 Abhishek: This is too complex for a beginner. Please write a simpler one.

💬 2016-09-17 Herong: dot.g, really? please give details.

💬 2016-09-15 dot.g: worst kind of programming

💬 2015-07-24 tintin: hi

java.util.Locale - Localization and Internationalization
This section provides a tutorial example on how to use java.util.Locale class to verify the default locale and list all supported locales. A locale is an identification of a combination of human language and country.
2016-12-19, 4503👍, 3💬

💬 2016-12-19 jfseb: Note that java locales do not correspond in all versions to ISO 639. e.g. hebrew is now he, not iw. https://en.wikipedia.org/wik...

💬 2016-05-06 Scrijna: P.S. It's also useful for Java, iOS and Windows localization, as it supports most popular localization formats.

💬 2016-05-06 Scrijna: For Android app localization, you could try using the localization tool https://poeditor.com It's useful for collaborative trans...

Downloading and Installing Java DB (Derby)
This section describes how to download and install Java DB (Derby database server) 10.11 - free for evaluation.
2016-02-19, 4424👍, 9💬

💬 2016-02-19 Ali: Good App

💬 2016-02-02 kotyba: very nice

💬 2016-02-02 kotyba: thanks

💬 2015-10-30 govind: super

💬 2015-08-29 memo: thanks

(More comments ...)

Java Tools Tutorials - Herong's Tutorial Notes
This free book is an excellent tutorial book for beginners. It is a collection of notes and sample codes written by the author while he was learning Java tools himself. Topics include java, javac, jar, jdb, jar, javap, keytool, jconsole, jps, jstatd, jstat, jinfo, jmap, jhat, jstack.
2016-01-12, 4409👍, 1💬

💬 2016-01-12 ASHIS BEHERA: IT IS VERY GOOD

HttpsClient.java - HTTPS Client Test Program
This section provides a tutorial example on how to write a HTTPS client test program, HttpsClient.java. It sends a simple HTTP request page using the HTTPS protocol.
2015-11-20, 4272👍, 6💬

💬 2015-11-20 Herong: Philip, can you run HttpsHello server with SSL debug turned on? My test programs do have issues with newer build of JDK 1.7 and ...

💬 2015-11-19 Philip: java version "1.7.0_80" Java(TM) SE Runtime Environment (build 1.7.0_80-b15) Java HotSpot(TM) 64-Bit Server VM (build 24.80-b11,...

💬 2015-11-19 Herong: Philip, which JDK version are you using?

💬 2015-11-18 Philip: I changed the code, but then reset back to the example. I recreated the jks a few times. The JVM and OS had not changed. It stop...

💬 2015-11-18 Herong: Philip, Was anything changed? Certificates, code, JVM or operating system...

(More comments ...)

'jstatd' - JVM Remote Monitoring Server
This section describes the JVM remote monitoring server 'jstatd' and its options. 'jstatd' are used to allow JVM monitoring tools 'jps' and 'jstat' to access local JVM processes from a remote machine.
2017-04-01, 3713👍, 6💬

💬 2017-04-01 Herong: Asdaq, Thanks for sharing your comment.

💬 2017-03-31 Asdaq: For IBM SDK WebSphere Application Server this tool is not available.

💬 2015-12-13 Herong: Tim, I thought that every Linux system comes with JDK preinstalled. Not true?

💬 2015-12-12 tim: @majumder.soumya@gmail.com seems like you need to install jdk

💬 2015-07-29 Herong: Majumder, Are you using a remote Linux system? It could be that you user account do have the permission to run the "jstatd" tool...

(More comments ...)

Java Tutorials - Herong's Tutorial Examples
This free Java book is a collection of notes and sample codes written by the author while he was learning Java himself. It covers topics related Java language core features and classes provided in the java.lang.* package: array, bit, byte, deadlock, expression, generic class, generic method, literal...
2016-03-05, 3522👍, 8💬

💬 2016-03-05 SOUMO BISWAS: YES

💬 2016-02-26 Herong: Maurice, Thanks for the positive feedback!

💬 2016-02-25 Maurice: It is a great JVM book

💬 2015-12-05 Herong: Yogesh, we need better examples than what you have suggested...

💬 2015-12-05 yogesh kumar: Visit more java examples [URL removed]

(More comments ...)

javax.net.debug - Debugging SSL Socket Communication
This section provides a tutorial example on how to use JVM property, javax.net.debug, to turn on the SSL socket communication debug option. The debug output message can help you to know what exactly happens at the SSL layer.
2017-03-02, 2938👍, 2💬

💬 2017-03-02 Herong: hemanth, you can follow SSL Client Authentication tutorials to see how to enable client authentication.

💬 2017-03-01 hemanth: How do i enable client authentication. I know that i have to set server to need client auth which i did but what about the clien...

"keytool" Commands and "keystore" Files
This chapter provides tutorial notes and example codes on the 'keytool' command. Topics include introduction of public key certificates, 'keystore' file, 'keytool' command; generating new keys and self-signed certificates; exporting and importing certificates; cloning certificates to share keys.
2015-11-23, 2814👍, 3💬

💬 2015-08-10 mike: Cool

'com.sun.management.jmxremote.port' - JMX Agent for Remote Connection
This section provides a tutorial example on how to turn on the out-of-the-box JMX agent on Sun JVM for monitoring tool 'jconsole' to connect from remote machines.
2016-01-13, 2551👍, 1💬

💬 2016-01-13 vetri: Good

Adding META-INF/MANIFEST.MF to JAR Files
This section provides a tutorial example on how to add manifest files to JAR files.
2016-05-12, 2543👍, 1💬

💬 2016-05-12 mps: nice..

1 2 3 4 > >>   Sort: Date