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

Unable to run java swing application in Windows 10 Enterprise after an update.

I wrote a Java Swing application for one of my clients.  It has worked fine until their most recent Windows 10 update.  They have Java  SE 1.8.0_231.  The program runs just fine on my local system running Windows 10 Pro with the same version of Java.

Initially the program asked had Java options -Xmx and -Xms for 4196m.  We got a heapspace error.  The computer has 16G of memory and it had just been rebooted.  9G were available.  We tried again with parameters for 2G of memory and got the error "Could not reserve enough space for 2097152KB object heap".  I have attached the screenshot.  Again, the system had just been rebooted and 9G are available.

The user is the administrator of the computer.

Next we tried "Run as Administrator" to see if the program would run.  The same problem occurred.

I suspect some kind of group policy may be preventing Java from running but don't know where to look next.

Any thoughts, experts?

thanks, Cara
Introduction to R
LVL 19
Introduction to R

R is considered the predominant language for data scientist and statisticians. Learn how to use R for your own data science projects.

Hello Experts
Can I please know what would be the easiest way in JAVA to find the difference between two times in the following format yyyyMMddhhmmss? The two times I am trying to compare will not differ by more than a couple of minutes. Any suggestions  for a simple solution greatly appreciated :)
How to resolve issue below in Eclipse?
i have one problem one dropdown is there for example dropdown having 2 values A and B
if i select A it works normally and go to the controller but if i select B one more dropdown
open in the same page . please help me out on this.
got windows 10 computer
got a website which requires jnlp extension to open in java web launcher.

when I go to default application, - file extensions, for jnlp - it’s set to internet explorer, but does not give an option to change to java web launcher

it got only adobe reader/ IE/ Microsoft store. no option to select java web launcher .

any idea to set jnlp default to java web launcher ?!
[embed=file 1437521]
[embed=doc 1437521]
hi am having issue checking java home in linux
 java --version
Unrecognized option: --version
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.

i have this in my profile
export JAVA_HOME=/usr1/Oracle/jdk1.8.0_221
export PATH=$JAVA_HOME/bin:$PATH
Hi Docker Experts,

I have a vendor provided docker image. Which I have it in my docker registry.

I have simple Docker File which uses this image as a BASE image.

1. Would like to copy a file from the docker image to host
2. update the copied file on the host
3. Copy updated file back to docker in the same location
4. build docker with new tag

please help

Simple Dockerifle

RUN echo foo > bar
COPY /tmp/test.txt /tmp/test_upd.txt

Open in new window

For me even simple COPY is failing
lstat tmp/test.txt: no such file or directory
Hi Experts,

Could you help me how to find below special charcters "" in JAVA and Shell Script please.

This appers just of the first name of a person. Since we are not identifying this...this slips through our process and fails at the end of complete process. if we could identify this as part of the first parsing step. it would save lot of reprocessing time and defects etc.

This is what I see in a XML file
Firstname  Lastname

Same above character in a CSV file after the complete process failed
Firstname � Lastname
ORA-01000: maximum open cursors exceeded error from java program hundreds of times... question is can this error be the cause of missing or bad data generation from program?

Does this error stop say a loop that writes output from writing?

i have button and a i-frame in my jsp page but i want to show that i-frame button while click on that button . when i click on button i-frame content should visible
else hide.
Python 3 Fundamentals
LVL 19
Python 3 Fundamentals

This course will teach participants about installing and configuring Python, syntax, importing, statements, types, strings, booleans, files, lists, tuples, comprehensions, functions, and classes.

Hi Jenkins and linux experts,

When I start jenkins slave node (java/linux) from jenkins master....I can see jenkins  start up script runs for a 2 seconds and terminates for some reason. Could you help how to trouble shoot by looking at the essential logs please.

Below is the process I see for 2 seconds then it terminates
jenkins   4976  4946  0 00:35 ?        00:00:00 bash -c source ~/.bash_profile cd "/opt/build/jenkins" && /usr/java/jdk1.8.0_111/bin/java -XX:PermSize=1024m -XX:MaxPermSize=2048m -Xmx2048m -jar remoting.jar -workDir /opt/build/jenkins -jar-cache /opt/build/jenkins/remoting/jarCache
jenkins   4991  4976 71 00:35 ?        00:00:04 /usr/java/jdk1.8.0_111/bin/java -XX:PermSize=1024m -XX:MaxPermSize=2048m -Xmx2048m remoting.jar -workDir /opt/build/jenkins -jar-cache /opt/build/jenkins/remoting/jarCache

Open in new window

From master jenkins > manage jenkins > node > agent log
Slave JVM has not reported exit code. Is it still running?
[11/19/19 00:35:18] Launch failed - cleaning up connection
[11/19/19 00:35:18] [SSH] Connection closed.
ERROR: Connection terminated
	at hudson.remoting.ObjectInputStreamEx.<init>(
	at hudson.remoting.Command.readFrom(
	at hudson.remoting.Command.readFrom(
	at hudson.remoting.SynchronousCommandTransport$
Caused: Unexpected termination of the channel
	at hudson.remoting.SynchronousCommandTransport$

Open in new window

please help
Does Java have a support lifecycle in the same way that Microsoft apps like Windows do? And how regularly do they issue security updates for Java, e.g. monthly? We have got to do some reporting on unsupported software and we dont have an automated scanner to do it so its becoming somewhat of a manual reports albeit not over that many systems. I am trying to find some accurate on data though on which to determine 'is it supported or not'.

Also we found a powershell command to enumerate versions, do you feel this would be accurate?

Get-WmiObject -Class Win32_Product -Filter "Name like 'Java(TM)%'" | Select -Expand Version
want to read a file line by line , each line want to store in string array and want also total no of lines

BufferedReader input = null;
            int numLines = 0;
            String[] lines = null;
            try {

                  input = new BufferedReader(new FileReader(lFilePathStr));
                  try {
                        String line = null;

                        while ((line = input.readLine()) != null) {
                        for(int count = 0; count < numLines; count++) {
                              lines[count] = input.readLine();
                  } catch(Exception e) {
            } catch (IOException ex) {
      in below line only 1st line read after that it will come in catch block please let me know where i am wrong.
hi how can i set java home in linux
i did this in my /etc/profile
java path
but everytime when i start my vm i have to manual set java home
it always point to this
java -version
openjdk version "1.8.0_131"
OpenJDK Runtime Environment (build 1.8.0_131-b12)
OpenJDK 64-Bit Server VM (build 25.131-b12, mixed mode)

i try this
find /usr/lib/jvm/java-1.x.x-openjdk
find: ‘/usr/lib/jvm/java-1.x.x-openjdk’: No such file or directory

i what to do this
find /usr/lib/jvm/java-1.x.x-openjdk.
vim /etc/profile. ...
Press 'i' to get in insert mode.
add: export JAVA_HOME="path that you found" export PATH=$JAVA_HOME/bin:$PATH.
logout and login again, reboot, or use source /etc/profile to apply changes immediately in your current shell.
I have a file which has multiple ST* sets. Is there a way to tokenize to get these sets into string Builder or any of the similar kind? I dont want to loop through each and every line to combine all the lines of the ST sets. The idea is once I get the ST sets then I can combine the header(ISA+GS) and ST with trialer(IEA+GE) to form one proper recordset. PFA  is the file.

I am planning to start with getting all the file into one string builder using the following code and then proceed stripping off the pieces I need to rebuild the set desired. PFA also the individual sets desired. Please note I have the code to generate the individual sets but I need it withough reading though and looping through each line. Need some kind of tokenizer.

InputStream is = new FileInputStream("");
BufferedReader buf = new BufferedReader(new InputStreamReader(is));
String line = buf.readLine();
StringBuilder sb = new StringBuilder();
while(line != null){
   line = buf.readLine();
String fileAsString = sb.toString();
System.out.println("Contents : " + fileAsString);

Open in new window

Hi Folks,

I have a file, which I need to sort and segregate the Transaction sets and transfer each transaction set into an FTP folder as a separate file. PFA is the original file "file-a.txt", With the help of other experts in the community using the program "sortingMultiEDIrecords.txt" I am able to segregate the Transaction sets into multiple output files in my example it is "output-1.txt", "output-2.txt" and "output-3.txt". Then I used another program "ftpFileUpload.txt" to upload these output files into an FTP server in a specified folder.
            Now the issue I have is I am having trouble doing this 2 stage process in my server in which I will be deploying. So I am looking for one Java program which instead of genearting the output files into a folder and then picking it up from there to upload into FTP, I am looking a for a solution where in the outputs are directly FTPed in teh FTP server. So instead of the BusortingMultiEDIrecords.txtsortingMultiEDIrecords.txtftpFileUpload.txtfile-a.txtoutput-1.txtoutput-2.txtoutput-3.txtfferedWriter which writes to an intermediate storage should actually directly write it into the FTP folder. PFA all the programs and files. I would appreciate the feedback and sample code if possible.

I keep getting this error: Java was not found or is executable at the specified path, when putting in the Java Dir.  I have verified this 10 times over yet I still cant figure out why Drupal cant find the Java application...

Ive tried:




And still nogo.,

Any ideas why?
Dear Experts,
We have a Windows Server 2016 Standard running Java 8 v.211, and is getting flagged in the vulnerability scan "A remote Java JMX agent is configured without SSL client and password authentication."  The suggested solution is to enable SSL client or password authentication for the JMX agent, however, as I research for the solution, I am not getting a clear answers.

The one I wanted to try was to set up SSL, using keytool -genkey, then setting the system properties such as Keystore location.
What I need is to understand how to accomplish these tasks, as I found the commands that need to be executed.   Am I executing this from Java environment that runs on this server?

Please advise.

-jar lib/derbyrun.jar server start -h

Hi Folks,

I have an EDI file, which I need to sort and segregate the Transaction sets and transfer each transaction set into an FTP folder as a separate file. In the attachments I have "File A" which is the actual input file and "File B" shows format after the sort to show the individual transaction sets and finally 3 files "Output 1" , "Output 2" and "Output 3" which have to be extracted out of the File B and have to be sent to an FTP server. The idea is to directly extract the Output 1 , 2 and 3 from File A. I have shown the File B to depict what I meant by Transaction sets.

Each Transaction set consists of the following components in that order. Please check the file "File_A_components" which shows the highlighted components from the "File A" for reference.  I would need suggestion on how to generate Output 1, 2 and 3 separate files into an FTP server using Java. I am an amateur in JAVA. So please provide as detailed as possible.

Transaction Set components
ST set

CompTIA Cloud+
LVL 19
CompTIA Cloud+

The CompTIA Cloud+ Basic training course will teach you about cloud concepts and models, data storage, networking, and network infrastructure.

how to get the GMT time zone return format as timestamp

static final String DATEFORMAT = "dd-MM-yyyy HH:mm:ss";
Running Notes 9. Suddenly notes is crashing on start up. Shows the 'splash' window and then "An error has occurred in an IBM Notes Applciation", etc.
Tried killing processes, restarting PC and same thing happens each time.
So I thought I'd run a repair from installation files. It starts going through the motions, asks if I want to make Notes my default email, etc, I click continue and then an error message pops up: "Could not create the Java virtual machine" and then the installer exits.
I've searched this error and there are articles but do not relate to Lotus Notes per se.
Any ideas what I can do to try get Notes running again?
OS is WIn 10 up to date. Thanks
Hi Experts,

i have a below string value
rptFormat:xls|delType:email|langid:en|SchTime:00:00|ftype:xls|P_GENERATEDON:29-10-2019 18:27:55|custidval:10024|querycondition:WHERE CUSTOMER_MAP.CUSTOMERID = CUSTOMER.CUSTID  AND CUSTOMER_MAP.CUSTOMERID = MASTER.CUSTID  AND MASTER.DELETEFLAG = 'N' AND CUSTOMER_MAP.DELETEFLAG = 'N' |

from that i have to get custidval as 10024

querycondition as


how to get the above values from the entrire string each value separated with | symbol
Seeking your inputs please. The situation is as follows:

1) I have a HTTP listener running on a port (say 8083) on a Windows 2012 Server.
2) A client application continuously sends SOAP request to and receive a SOAP response from my listener.
3) There are instances when two successive requests are sent within a span of 10ms
4) The second request on the client application always results in the error 'Connection Refused' in the client logs. The owner of the client application believes my listener refused to accept the connection.
5) I am kind of confident it did not reach the listener, but not entirely sure if the connection was refused by the OS on the server.

Can I please know if there is a way to check if such a request was ever received at the listener port? Any kind of Windows logs or internal tools that can help me here?

Hello Experts,
I have built few HTTP 1.1 listen service mocks using SoapUI and CA DevTest tools. Every request to the service from a client like Postman is established as a new connection. Inserting a custom header Connection:Keep-Alive into the request and also the response is not making any difference. Can I know is there more to be done to have the socket open for successive connections happening within a second?

How can I lower the Java Security Rules for internal networks only?

Currently our users are needing to manually enter an internal web address in their Java Exception list.  I have been charged with trying to make the process more automatic for our users.  Specifically to allow all URL's for internal web addresses to allow the Java Applet.

I did find a way to create an Exception list for the computer:

but, this option takes away the user's ability to have their own list or to add the web sites that they want and the list will be managed by the local administrator.  Equally important, if I used the above mentioned web page documentation then it will overwrite any Java exception list that the user already created.  We do not want to go that route.

Is there a way to allow internal web addresses to have a lower Java Security level then external web addresses?  TO actually allow Java to be run on those internal web url's.






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.