Articles & Videos



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


I am using self written Java programmes at home that consume SOAP web services from my rc plane club. So far everything works good, But sometimes the SOAP web services that I use are not available due to maintnance or problems at the club's server. I want to monitor the availability of the SOAP services and persist the status. When I use the SOAP services the programme shall first check the availability from the monitor and if the status is 'available' perform the desired request or else queue the request until the service becomes available again.

Before I start to re-invent the wheel and write my own monitor I wanted to know if there are already tools that can accomplish this task, which can be easily embedded or used in Java before a request.

Best regards,
The Ultimate Checklist to Optimize Your Website
The Ultimate Checklist to Optimize Your Website

Websites are getting bigger and complicated by the day. Video, images, custom fonts are all great for showcasing your product/service. But the price to pay in terms of reduced page load times and ultimately, decreased sales, can lead to some difficult decisions about what to cut.

Hi Experts,
Trying to build and deploy a war file using Gradle on Tomcat...for one of my POC.

could you give me some lead pls
We have Double.isInfinite(), float.isInfinite(), why dont we have that for Integers ?, I think they shud, irrespective of any reasons

When I try to login to to Google on my PC using ANY of the latest browsers (Chrome, Firefox, Opera etc) I am able to enter my username but when I press the "NEXT" button nothing happens.  I added a screenshot of the page that I am stuck on here: and the link I am stuck on is below.    The link that i am stuck on is

If I use an old Safari browser that is unsupported or I add a Script Blocker to one of the new browsers (like NoScrip) then I get the old Google V1 Login page and I can login with no problems. See image:

Can someone help me figure out how to fix this issue?


David S.
I'm trying to collect data from FireBase, in Android Studio, while sorting it using the orderByChild and equalTo functions. Then I'm trying to display the data on text views. The page crashes every time? How can I fix this? Below I've given my code and my database:

 public class TrackOrder extends AppCompatActivity {

    DatabaseReference mDatabase;
    private EditText trackText;
    private Button trackBtn;
    private TextView disp, text;

    public void trackBtn (View view){ //opens the admin portal activity
        trackText = (EditText) findViewById(;
        disp = (TextView) findViewById(;

        String trackNumb = trackText.getText().toString();



    protected void onCreate(Bundle savedInstanceState) {

        String numb = disp.getText().toString();

        trackText = (EditText) findViewById(;
        text = (TextView) findViewById(;
        trackBtn = (Button) findViewById(;

        mDatabase = FirebaseDatabase.getInstance().getReference().child("Orders"); //Reflecting where the data will be located

        mDatabase.orderByChild("1 order_number").equalTo("4725");

        mDatabase.addValueEventListener(new ValueEventListener() {
            public void onDataChange(DataSnapshot dataSnapshot) {


Open in new window

Hi all,

Need to write a python or shell script for email alert on memory utilisation of the server.
we are glance tool to monitor the cpu and memory utilisation for our weblogic servers. If the memory utilisation reached 80% it should alert us through mail so that we can check and restart if required.

below is the output of glance file
B0000A Glance C.04.70.000       04:56:38    x86_64                                                                     Current  Avg  High
CPU  Util   SU                                                                                                                       |  1%    3%   27%
Disk Util                                                                                                                            |  0%    0%    7%
Mem  Util   U                      UB     B                                                                                          | 26%   26%   26%
Swap Util                                                                                                                            |  0%    0%    0%
                                                                     PROCESS LIST                     …
How could i provide security in webservice(authentication)
I have been using JDK 9 on Windows 10 x64 for a while but when I went to install the latest early release (b174), I first uninstalled the previous version (as usual) and then ran the new installer.

It fails with a message box saying "Another Java installation is in progress. You must complete that installation before you can run this installer".

It seems there are some artifacts around causing the problem but only for JDK 9 as I can uninstall & reinstall JDK 8 without any issues. Also, the same problem occurs if I try to run the installers for any prior JDK 9 releases as well (even though they worked before).

Searches have suggested various options like using a Microsoft MSI clean-up tool and registry hacks but nothing is helping.

Can anyone suggest a way to get JDK 9 installed (as now I cannot use any release of JDK 9 at all)?

My users have to use a website - the developer of the website say I have to set: _JAVA_OPTIONS=-Xmx1024m (env. variable on the machines)

When setting the env. variable the website works, but other java-applets does not work anymore. (for example verify java)

How to solve this?

I am working on a migration project, from PB to Java.
I am getting a rounding issue when comparing Java with PB.
Example: Please find the below combinations with scale 2
Number                PB
123.4445      123.45
123.4444      123.44
123.4454      123.45
12.344445      12.34
12.34454      12.35
12.34544      12.35

In PB considering 2 numbers after scaling decimal, is it true or what type of rounding happening here.
I have tried in Java with all Bigdecimal rounding types and mathcontext but there is no luck.
Could you please explain me how rouning works in PB.
PeopleSoft Has Never Been Easier
PeopleSoft Has Never Been Easier

PeopleSoft Adoption Made Smooth & Simple!

On-The-Job Training Is made Intuitive & Easy With WalkMe's On-Screen Guidance Tool.  Claim Your Free WalkMe Account Now

Hi Experts,

I have jenkins installed on my windows desktop and having issues configuring it to send emails from my outlook account as it uses TLS instead of SSL. I have done some research and some forums suggested adding the JENKINS_JAVA_OPTIONS to the jenkins.xml file and doing a restart however this didn't work for me.

JENKINS_JAVA_OPTIONS      -Djava.awt.headless=true -Dmail.smtp.starttls.enable=true

My SMTP settings are
Use SSL unchecked
Username *****
Password ******

Error is below
com.sun.mail.smtp.SMTPSendFailedException: 530 5.7.0 Must issue a STARTTLS command first

      at com.sun.mail.smtp.SMTPTransport.issueSendCommand(

      at com.sun.mail.smtp.SMTPTransport.mailFrom(

      at com.sun.mail.smtp.SMTPTransport.sendMessage(

      at javax.mail.Transport.send0(

      at javax.mail.Transport.send(

      at hudson.tasks.Mailer$DescriptorImpl.doSendTestMail(

      at java.lang.invoke.MethodHandle.invokeWithArguments(Unknown Source)

      at org.kohsuke.stapler.Function$MethodFunction.invoke(

      at org.kohsuke.stapler.Function.bindAndInvoke(
When i was trying to execute the query errors like
ORA-00900: invalid SQL statement
I am unable find a solution.Please help.

Is it possible to extract certain words from multiple documents and then place them in to an excel spreadsheet sort of like a data miner (I guess?).


Let's assume I need someone with experience in Java and they need at least 3 years experience, I can then type in those requirements and it will then go through all my CV's and put the people it thinks meets those requirements in to a excel spreadsheet.

I'm sure this is possible but I'm not sure how hard this would be (I'm doing this for a school project)

I have large numbers PDF document, from which I need to extract text. The extracted text I use for further processing. I did this for a small subset of documents using Tesseract API in a linear approach and I get the required output. However, this takes a very long time when I have a large number of documents.

I tried to use the Hadoop environment processing capabilities (Map-Reduce) and storage (HDFS) for solving this issue. However, I am facing problem to implement Tesseract API into the Hadoop (Map-Reduce) approach. As Teserract converts the files into intermediate image files, I am confused as to how intermediate result Image files of Tesseract-API-process can be handled inside HDFS.

I have searched and unsuccesfully tried a few options earlier like:

    I have extracted text from PDF by extending FileInputFormat class into my own PdfInputFormat class using Hadoop-Map-Reduce, for this i used Apache PDFBox to extract text from pdf, but when it comes to scanned-pdf's which contains image, this solution does not give me the required results.

    I found few answers on the same topic stating to use -Fuse and that will help or one should generate image files locally and than upload those into hdfs for further processing. Not sure if this is the correct approach.

Would like to know approaches around this.
I am trying to monitor a java application (jenkins) using JAVA Melody. I need a groovy script that can monitor for values highlighted in RED for columns in mean time and mean cpu times.

Below is the link to java melody (monitoring) plugin in jenkins.

Jenkins plugin.

Sample scripts

I am a beginner with this, and after configuring JAVA and Wildfly, I get the following error when trying to run :

14:27:33,895 ERROR [] (Controller Boot Thread) WFLYSRV0055: Caught exception during boot: WFLYCTL0085: Failed to parse configuration
        at [wildfly-controller-2.2.0.Final.jar:2.2.0.Final]
        at [wildfly-server-2.2.0.Final.jar:2.2.0.Final]
        at$ [wildfly-controller-2.2.0.Final.jar:2.2.0.Final]
        at [rt.jar:1.8.0_131]
Caused by: com.ctc.wstx.exc.WstxParsingException: Received non-all-whitespace CHARACTERS or CDATA event in nextTag().
 at [row,col {unknown-source}]: [87,9]
        at [woodstox-core-asl-4.4.1.jar:4.4.1]
        at [woodstox-core-asl-4.4.1.jar:4.4.1]
        at [woodstox-core-asl-4.4.1.jar:4.4.1]
        at …
I have an expandable list view that is inside of an expandable list adapter. I would like to remove an item from an expandable list view when the delete option is selected in the context menu in Android. After I call the remove method on the object's position, when I try to call notifyDataSetChanged() on the expandable list adapter, it says the method does not exist.

However, it will work for a regular ArrayAdapter. Because of the way my data is structured (having to display multiple fields in each list view item), I need to use an expandable list view instead of just a simple list view. I have tried casting the expandable list adapter to an ExpandListAdapter object and calling the getAdapter() method on it, and then calling notifyDataSetChanged() but I get the following error: SimpleAdapter cannot be cast to com.test.myapp.ExpandListAdapter.

My application is using API 25. Please see the code below:
public boolean onContextItemSelected(MenuItem item) {

    AdapterView.AdapterContextMenuInfo info = (AdapterView.AdapterContextMenuInfo) item.getMenuInfo();
    switch(item.getItemId()) {
            Intent intent = new Intent(MainActivity.this, AddUser.class);
            return true;
            Intent intent2 = new Intent(MainActivity.this, ViewUser.class);
            intent2.putExtra("data", userList.get(info.position).get("id"));

Open in new window

Hi, following along on a tutorial on using Netbeans debugger. However, when I set a break point then click to debug and then try to use the Step Into (F7) command a windows opens up with a name like and I am out of the debugger.

The code used for this tutorial  has a variable that is set from a user input and the only error I see is
"Variable Information not available, source compiled without -g

I am using a virtual machine built in VMWare Pro 12. Not sure if that has anything to do with it. At any rate I am not able to step into.
I have creted an login form in java by using Netbeans. now when i enter username and password then after click on login that username and password should enter in excel sheet . Can we do this?
if yes then please provide me the detail steps for that as soon as possible.
Announcing the Most Valuable Experts of 2016
Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Would for example Java or GWbasic be a good choice? (If possible to achieve without Excel's VBA.) Or could I benefit from using an online tool such as Unity or Game Maker Studio 2? What about Smalltalk or Ruby? And should I avoid PHP, JavaScript and C++ according to this website?:

I already have a lot of VBA in this Excel, and now want to add a simulator for simulation of each harness race I have handicapped. It would consist of an oval shaped circuit and objects (maximum 15), that represent the horses, running around this circuit, and which I can control by entering values in a table below the circuit. Something like this:

(But my simulation would be an oval shaped circuit, otherwise the same principle with a table below where I can enter values that affect how the race is run/simulated.)

A layout something like this is what I have in mind:
(The first option would be perfect, if possible in Excel and in Windows 10.)

Of course these kind of layouts would be very good also, but probably not possible in Excel:

So no high requirements on graphics (is not possible anyway in Excel), but on being able …

I installed jenkins on my window 10 machine by using the msi I downloaded. It installed fine and has now launched the browser prompting me to unlock jenkins with the initialadminpassword. I can't find this file anywhere. I looked in the install directory C:\Program Files (x86)\Jenkins and I have checked the log files and no password was written to it. I even did a search on my whole C: for initialadminpassword and nothing came up. I do have a file called secret.key in my Jenkins install directory but the key in this file isn't working. Any ideas on how I can get around this would be very helpful

I have been able to view some of the data which was inserted into sage 50 version 20 in java, but I have tried every known query method to insert data into sage but it just keeps on giving me different errors every time.
Is there any help as I seriously need to get this done asap.
Any help is appreciated.
Thanks in advance
I have a FIX engine running in the cloud and I'm entertaining the idea of streaming FIX messages over websockets vs aws SNS.  Does anyone know pros'cons for either or at least some concrete resource to be able to compare the 2?

I built lightweight clients for both and both seem to be able to be tuned for high usage as well as low usage, so its just matter of price seems like.  Need help deciding.
Coding : PHP HTML jquery JavaScript.
Database : SQL Server 2008

I would like to import excel from pattern form in excel.

How to import Excel data by browse file and select cell data for import.
cell data is select C1 C2 C3 A5.
in file Excel
     |A| B             |C
|1|   |Name      | A
|2|   |Surname| B
|3|   |Gender   | Man
|4|   Status
|5|   Good

and import data to SQL table
1 |A         |B            |Man     |Good

Thank you for help me.
I have created bulk email ids using ArrayList and using it  runtime to send emails. now i want to create account for each email-id so that i can read a reply for each email-id. Please suggest a way to do it.





Articles & Videos



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.