Java is a platform-independent, object-oriented programming language and run-time environment, designed to have as few implementation dependencies as possible such that developers can write one set of code across all platforms using libraries. Most devices will not run Java natively, and require a run-time component to be installed in order to execute a Java program.

Share tech news, updates, or what's on your mind.

Sign up to Post

Hello all,

Where can I download java 7u151-64.exe.
I tried every where and could not find this version.

Free Tool: ZipGrep
LVL 10
Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

I want to add php plugin in netbeans 8.2 on my computer.

The problem is there is no internet connectivity on that computer so i cannot install plugin through netbeans itself using following method

Tools-> plugin -> available plugins.

so, how  would i able to make php application on my computer.
  is there anyway to download plugin from another computer having internet connectivity and then make it installed on my computer.

I am trying to parse JSON file through JAVA program that has nested objects and arrays.

I am attaching the sample JSON file and the expected results.

I am also attaching the JAVA class program that I am currently using but it only prints the first object and the values related to it. I want the JAVA code to loop through each object and find the nested objects within it and print it as well.

import java.util.Iterator;
import java.util.Set;

import org.json.simple.JSONObject;
import org.json.simple.parser.JSONParser;
 * @author
public class CrunchifyJSONReadFromFile {
    @SuppressWarnings({ "rawtypes" })
    public static void main(String[] args) {
        JSONParser parser = new JSONParser();
        try {
            Object obj = parser.parse(new FileReader(
            JSONObject jsonObject = (JSONObject) obj;
            Set keys = jsonObject.keySet();
            Iterator a = keys.iterator();
            while(a.hasNext()) {
            	String key = (String);
                // loop to get the dynamic key
                String value = (String)jsonObject.get(key).toString();
                System.out.println("key : "+key);
                System.out.println(" value :"+value);
        } catch (Exception e) {

Open in new window

Can someone please assist?

Thank you

We are getting this error when using IE. I uninstalled java and reinstalled it. The same error. Any idea?  thanks
I want to write a code to transfer amount from one account to another.
A table will store the amount corresponding to each.

Suppose this how i transfer amount of 10  from account named A to account B

boolean amountToAdd(changeBy, accountName ) {
I run the following query using jdbctemplate with autocommit = 0
update account
set amount = amount +changeBy
where name = accountName

Now in my java code i will have the above mentioned transaction like :

Boolean isdeducted = amountToAdd(-10, A);
 Boolean isAdded = amountToAdd(10, B);

if(isdeducted && isAdded) {
    perform commit on transaction;
} else {
    perform rollback;
The issue comes in case of multithreading.
Suppose two such transactions are in process.

transfer 10 from A to B and transfer 10 from B to A

suppose amount in A = 100 and B = 90 to begin with
A = A - 10  = 90
B = B-10 = 80

Now as T1 has locked table A and T2 has locked Table B what will happen in this case ??

Also there is a possibility the T1 and T2 are getting executed over the same connection to the mysql server.
Then there could be the case like :

A = A- 10 = 90
B = B-10 = 80
A = A+ 10 = 100 (the changes will be visible as we are on the same connection)
so now A = 100 and B = 80
But suppose now there is a failure in db or something due to which T1 couldnt proceed
Then what will the value of A will it remain 100 or will it be rollbacked to what it was before T1 began...
I have a spring web application and its deployed on a linux box remotely. The logs are getting created there.
But everytime i have to see the logs i need to login to that machine and search for all Exceptions.
An alternative would be whenever there is any exception the exception with the stack trace could be mailed to me.
This would require changes in my java code.

Other way could be i just parse the log files everyday and mail all the exceptions with stacktrace.
For this one could make a shell script.

Please suggest any other ways i could achieve the same any better ways.
probably somewhere where anyone could see the exceptions.

Is there a straightforward way to enable a standard user to update java without granting then administrator rights in the pc?

Thanks in advance for advice
how may possible ways are there to authenticate REST API requests.
please provide few examples
First of all is it good to store user/visitor credit card info in our database,so that next time he does the transaction,no need to fill in the details again.

How to ensure safety of this information in our DB?


I need to integrate payment gateway into my application? Payment gateway should support both credit/debit/master/visa card.
How can i do it in java web application?
Independent Software Vendors: We Want Your Opinion
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

what value it takes in version when we write  this in Maven pox.xml ?

Are there any opinions on how slapdash this advice is :

Developing a Java Web Start Application

Software designed by using component-based architecture can easily be developed and deployed as a Java Web Start application. Consider the example of a Java Web Start application with a Swing-based graphical user interface (GUI). With component-based design, the GUI can be built with smaller building blocks or components. The following general steps are used to create an application's GUI:

Create a MyTopJPanel class that is a subclass of JPanel. Lay out your application's GUI components in the constructor of the MyTopJPanel class.
Create a class called MyApplication that is a subclass of the JFrame class.
In the main method of the MyApplication class, instantiate the MyTopJPanel class and set it as the content pane of the JFrame.

from this.
I would like to generate  JAXB pojos  from MySQL ER diagram ?

How to do it ?


Can u help me out with an example to differentiate between http post and put method and scenario where we should prefer put method over post?
Error Message 1 in Event ViewerError Message 2 in Event ViewerHi,
 I have Windows 10 Pro PC joined domain and I can't install Java. I tried online install using "JavaSetup8u144.exe" and off-line download "jre-8u144-windows-x64.exe".
 When I double-click on either exe file from my download folder, it circles for a second and nothing happens. I even logged in as local administrator to the PC, but no avail.
 I checked the Event Viewer and found a couple of errors recorded right after executing these exe files.
 I tried after disabling anti-virus programs, but the results are the same.
Can you help?
I have the following class definition:
class PurchaseData {
    public BigDecimal purchaseYears,
        lapsedTime, lapsedTime2, lapsedTime3,
        purchaseCost, purchaseCost2, purchaseCost3,
    PurchaseData(BigDecimal py, BigDecimal cr, BigDecimal my,
        BigDecimal l1, BigDecimal l2, BigDecimal l3,
        BigDecimal f,
        BigDecimal p1, BigDecimal p2, BigDecimal p3,
        BigDecimal pa)
        purchaseYears = py;
        contribRate = cr;  
        milYears = my;   
        lapsedTime = l1; 
        lapsedTime2 = l2;
        lapsedTime3 = l3;
        factor = f;
        purchaseCost = p1; 
        purchaseCost2 = p2;
        purchaseCost3 = p3;
        paymentAmount = pa;

Open in new window

Note that, all by itself, that class definition compiles w/o errors.

In my program I do the following:
PurchaseData rd = new PurchaseData();
//and I've tried:
PurchaseData rd = new PurchaseData(null,null,null,null,null,null,null,null,null,null,null);

Open in new window

when I try to run, I get:
org.apache.jasper.JasperException: Unable to compile class for JSP: 

An error occurred at line: 2,068 in the jsp file: /purchaseServiceCredit.jsp
The constructor purchaseServiceCredit_jsp.PurchaseData() is undefined

Open in new window

What am I doing wrong?
How is this functioning [below from the Java doc],

>>All keys inserted into the map must be mutually comparable by the given comparator:, k2) <<


the codehere calls with only one parameter ?
We are using PBEWithMD5AndDES encryption to encrypt ids for the purposes like, password reset links and some other places in the application for many projects.

Now we would like to change the encryption algorithm for the new projects.
What will be the secure and fast encryption algorithm for these purposes.

Is AES amd symmetric key encryption secure?

Any  idea about how to increase Internet Explorer 10 ReceiveTimeout (Server response time) programmatically (java , jquery , ajax)  apart from below settings.

New feature and membership benefit!
LVL 10
New feature and membership benefit!

New feature! Upgrade and increase expert visibility of your issues with Priority Questions.

I have a .net page that has a master bage

On the .net aspx page I have 4 html input checkboxes

I also have two input textboxes and a .Net button

What I want is that in textbox 1
As a person types... and gets a "CAPS character that the chkCaps input gets checked
Lowercase character triggers chkLower and special character chkSpec

after the person types in second box...and it matches... chkMatches appears and is checked

btnSubmit becomes visible
What is difference between apache solr and apache tika, can u help with an example and case scenario where to each respectively

As per this link last step
i tried detail formatter
I am getting below error

Detail formatter error:
            Unable to resolve type binding for: clientID

please advise on how to fix it.
how to use ToStringBuilder multi line style as well to see deep into Person etc object?
I know how to program in C, C++, Java and Python, but I do not know how to design an application to be used by multiple users (single threaded serial or multithreaded). Any suggestion as to how t begin my search?  Could any one recommend any books or web sites?


In my eclipse i have 2 projects say project1, project2......., project20

I want to get latest code for each project then do maven update then maven clean then maven install for each individually and separately.
Is there is a way or short cut where i can do all together in one step.
what is maven update? is that supposed to run after maven clean and maven install or before.

please advise
HI Experts,
I am working on a project were I need to configure a Windows 2012 R2 print Server to receive IPP print jobs from a cloud based system running Java script. we are using as the IPP library to send the print jobs to our Print server but I don't think that we have our Print Server configured properly.
I installed the Print and Document Services Role  and ticked the internet printing option. I have configured a printer to be shared and can access the web portal and it is listed under all printers. the address that I get is 'http://XXX.XXX.X.XXX/printers/PackingPrinter/.printer' but when I try to use this in our test environment across our local network I just get errors. I am also having issues with Authentication that I would like to resolve, I need to turn off the authentication for the purpose of testing.
Can some one help me understand how windows handles IPP and what ports it uses and how i can test the IPP server?

All help is very much appreciated.
Cheers Joel






Java is a platform-independent, object-oriented programming language and run-time environment, designed to have as few implementation dependencies as possible such that developers can write one set of code across all platforms using libraries. Most devices will not run Java natively, and require a run-time component to be installed in order to execute a Java program.