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

hi experts
could you help with below please

Sample string for this question
Could not find '/dir1/dir2//dir3/'
Could not find '/dir1/dir2//dir3/'

1. how to ignore line 1
2. but catch line 2

Existing sample string/regex rule that experts exchange helped me which is working fine only for reference
/tmp/path - No such file or directory.
/tmp/shm - No such file or directory.
/dir1/validate_path - No such file or directory.

Working regex to exclude first two lines but catch the third line
/^(?!.*(tmp|log|shm))(.*No such file or directory.*)$/
Industry Leaders: We Want Your Opinion!
Industry Leaders: 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!

I am using Log4j2 with the JUL plug-in.

For example:
	... 18 more
1500642924477	Marionette	INFO	New connections will no longer be accepted
1500642924501	addons.xpi	DEBUG	Calling bootstrap method shutdown on version 1.1

Open in new window

Hi I am using applet for doing some client side operation. i just used cache parameter tag "<PARAM NAME="cache_archive" VALUE="a.jar,b.jar,c.jar">" for making server jars are cached. problem is my jars are caching but once i close the browser and open the applet, again my applet is downloading all the jars it is not looking jvm cached jars.

my requirement is once the jars are cached it should not load again. it has to download from local cache.

any body have solution ..?
When I replaced the JARs of POI-3.9 with POI-3.16, I am getting a popup "We found a problem with some content in file.xlsx. Do you want us to try to recover as much as we can? If you trust the source of this workbook, click Yes." while opening the downloaded excel. After clicking Yes, I am getting another popup "Excel completed file level validation and repair. Some parts of this workbook may have been repaired or discarded."

I have used below JARs.
1. poi-3.16.jar
2. poi-ooxml-3.16.jar
3. poi-ooxml-schemas-3.16.jar
4. xmlbeans-2.6.0.jar
5. commons-codec-1.10.jar
6. commons-collections4-4.1.jar
7. commons-logging-1.2.jar
8. junit-4.12.jar
9. log4j-1.2.17.jar

Please suggest a proper solution.
I have my code like below
      response = orch.process(request);

when i mover on to process method and click control and left mouse click it supposed to go to process method implementation but it is not doing in eclipse mars.

it used to work earlier not sure suddenly what happened stops working.

i restarted my laptop still not working.

please advise
I'm using for Windows 64bit. It comes with Java 5 as part of the install (I'm assuming so you don't need to have Java installed to use Oracle). How do I update that version of Java? I'm running into an error where I need the unlimited crypto package but I can't use it on Java 5 (I tried and it grenaded parts of Windows if I update the security files). I did then install Java 8 on the system but Oracle seems to look at it's own vs what is installed outside of Oracle.
We have a small java program that connects to an Oracle ( Windows) DB. There is a jks file that has the certs in it (4096 key size). When we try to connect we get: PKIX path validation failed: Algorithm constraints check failed: MD5withRSA

If I make changes to entries below in the file in Java:


and remove MD5 and MD5withRSA parameters it works. From what I've read this is supposed to be an issue in JRE 7.4 and above but it is only supposed to happen when they key length is 1024 or less. Not sure why it's happening with a 4096 key length cert.
we have web application, it is currently supported is developed with Spring mvc.
now i want to support IPV6.. how could be the changes.. and how it will effect.

in eclipse java project i have below stored procedure in a DAO class say


wen i search on it eclipise not finding.
how to find all the stored proc similar to above in all DAO classes?
what are best search strategies to find what i want in eclipise?
please advise
We are using ELK(Elastic search, logstash, and Kibana) for our log management. Everytime I will export the setting from kibana UI from Management--->Save Objects--->Export Everything. For demo, one can checkout the url: Kibana Demo

I want to automate this export process with some scripting on linux. I tried CURL but the header/payload data looks to be dynamic and might have to update frequently. I want to try some web scraping techniques with some web automation tools like Selenium and pythion.

Selenium Webdriver
I tried to record this export action with Selenium IDE and from the IDE I exported the test plan/case into . As we click on Export Everything button on Kibana, a firefox window opens asking where to save. This action is not handled by selenium, meaning download file is not supported by selenium.

So, I'm looking for some scripting to export the json(Export Everything) file from Kibana UI and it mush be Headless as I would be scheduling this script in linux server. To be headless, I also tried phantomjs, but even this doesn't support file download.

Simply, I just want a script to automate clicking export everything button on kibana and want it be saved in a file. Please share your thoughts or any idea,  i'm trying this for days...
Salesforce Made Easy to Use
Salesforce Made Easy to Use

On-screen guidance at the moment of need enables you & your employees to focus on the core, you can now boost your adoption rates swiftly and simply with one easy tool.

I'm trying to configure SSL(https) for tomcat 8 and have done below steps but still its not working

1) Create the keystore file using

keytool -genkey -alias myservername -keyalg RSA

Open in new window

2) Generated CSR as below

keytool -certreq -alias myservername -file C:\tomcat_ssl\local_machine\test.csr -keystore C:\tomcat_ssl\local_machine\test.keystore

Open in new window

3) Then we had Generated the Certificate and then imported the chain certificate and certificate as below

keytool -import -alias root -keystore C:\tomcat_ssl\local_machine\test.keystore -trustcacerts -file C:\tomcat_ssl\local_machine\srv_chain.cer

Open in new window

keytool -import -alias myservername -keystore C:\tomcat_ssl\local_machine\test.keystore -file C:\tomcat_ssl\local_machine\srv_main.cer

Open in new window

4) Finally Did the changes in tomcat server.xml as below

<Connector port="443" protocol="org.apache.coyote.http11.Http11NioProtocol" maxThreads="150" SSLEnabled="true" scheme="https" secure="true" clientAuth="false" sslProtocol="TLS" keystoreFile="C:\tomcat_ssl\local_machine\test.keystore" keystorePass="123" keystoreAlias="myservername"/>

Open in new window

Restarted the tomcat and its not working and showing below screen

Tomcat Error Screen for SSL
In tomcat logs it's not showing any errors and also i have tried other options like keeping cipher tag in connection, Enabled TLS 1,2,3 , changing https port etc no avail.

Also i have tested the https port 443 and it's showing as listening when i netstat. Any idea why this is not working
I converted  dex reader code sample  from the python  example Python version  to java but i am failing on   master handshake (after slave in master mode).
Failed on State 3 - Sending master key.
Have some one experience to read audit data from DEX  vending machine from android Bluetooth or DEX  cable.
File Provided.
My task: Allows the user to read DEX from a vending machine using a Bluetooth DEX device.

We are having one desktop application where while running experiment we are getting JVM crash issue.
Please find the attached log files to get details.

The application is developed in Swing, Java, and some native calls etc.

Can you please suggest any solution or probable cause of this error.
I am trying to print Persian character on my Zebra Z410 label printer. But for some reason it is printing ?????. The ZPL code I am sending to the printer via Zebra Settings Utilies


Open in new window

At what point should I be concerned with learning data structure and algorithm in Java. I have discovered that it's a very important strategy  to be good in writing codes in any computer language.
[06:06:37 PM] ----  Deployment started.  ----
[06:06:37 PM] Target platform is  (Weblogic 12.x).
[06:06:41 PM] Retrieving existing application information
[06:06:41 PM] Retrieving Shared Libraries Information from the server.
[06:06:41 PM] Running dependency analysis...
[06:06:41 PM] Deploying profile...
[06:06:41 PM] Wrote Enterprise Application Module to D:\OSDA_App_New\DiscoveryUITool\deploy\DiscoveryUITool.ear
[06:06:41 PM] Deploying 0 data source(s) to the server...
[06:06:41 PM] Deploying Application...
[06:06:45 PM] [Deployer:149193]Operation "deploy" on application "DiscoveryUITool" has failed on "AdminServer".
[06:06:45 PM] [Deployer:149034]An exception occurred for task [Deployer:149026]deploy application DiscoveryUITool on AdminServer.: [HTTP:101061][WebAppModule(DiscoveryUITool:Discovery)] Could not find Web application "C:\Oracle\Middleware\Oracle_Home2\user_projects\domains\Manju_domain\servers\AdminServer\tmp\_WL_user\DiscoveryUITool\a78nov\DiscoveryToolv2_Project1_webapp.war". C:\Oracle\Middleware\Oracle_Home2\user_projects\domains\Manju_domain\servers\AdminServer\tmp\_WL_user\DiscoveryUITool\a78nov\DiscoveryToolv2_Project1_webapp.war (The system cannot find the file specified)
      at Method)
      at java.util.jar.JarFile.<init>(
      at …
Hi experts,

I was looking around the web trying to find an implementation, but to no avail.

What I'm actually interested in is to detect if a Printer has PostScript support enabled.

I have tried POSTSCRIPT_IDENTIFY checking for PASSTHROUGH and POSTSCRIPT_PASSTHROUGH, but that does not work; some printers that have Postscript capabilities are not detected.

I found that the Java PrintService.isDocFlavorSupported works exactly as I want it to, but PrintService is an interface, and I can't find the logic that shows the implementation. I can't use the Java library as the application I'm working on has requirements to be a .NET application.

Does anyone have experience in figuring out how DocFlavor detection works, or better yet how to detect PostScript capability?

EDIT: I realised I was using the wrong printer driver...  was using Samsung Universal Driver instead of Samsung Universal Driver PS. Seems like the POSTSCRIPT_IDENTIFY detection is working as intended. If anyone has any prior experience/issues with this method, please do let me know though!

Best Regards,
Hi All,

We are doing a small POC to migrate MF screens to JAVA based webpages. As a matter of fact, we have created COBOL SPs to call relevant MF DC online programs. In case we need to call COBOL SP, what approach do JAVA team has to follow.

NOTE : IBM MQ is not supported by customer
              IMS DC (IMS is the online component of my customer. IMS and DB2 databases are used by administration system) is not suggested as it needs additional work
              Webservice / business services help should not be used.

What could be the approach do we have to follow?

P.s : I am neither JAVA expert nor Mainframe expert. Since I am managing a project, trying to get suggestions from various areas.

Moreover I heard something like wrapping COBOL stored procedure with DB2 so that it can be converted to DB2 SP(Do we have any approaches like that). In my customer's IT landscape they can call DB2 SP by using ODBC driver.

I am looking forward to see responses from experts.

hi experts.
could you pls advise on few online book/video store including subscription option for IT

I was looking at and
but they are expensive

how to get subscription with discounted price or coupon code for above sites.

pls help
[Live Webinar] The Cloud Skills Gap
[Live Webinar] The Cloud Skills Gap

As Cloud technologies come of age, business leaders grapple with the impact it has on their team's skills and the gap associated with the use of a cloud platform.

Join experts from 451 Research and Concerto Cloud Services on July 27th where we will examine fact and fiction.

Hi All,

I have a SQL Query below:

, MAX(PriceDate) AS MaxPriceDate
GROUP BY BarangCode
) B

ON A.BarangCode = B.BarangCode
AND A.PriceDate = B.MaxPriceDate

How could I query it using GreenDao using Java ?

Thank you.
Dear Team,

instead of every time inserting data into stored procedure  is it possible that from front end (java) we collect data for example 3 forms we have to submit data and then we collect this data into xml and finally insert into our stored procedure
I would like to know what fundamentals I need to build Android Apps.
What is tunneling and JRMP and DMZhow they are related to firewall and ports and network. Why we use tunneling. please advise
How authentication and authorization different from data integrity and Confidentiality.

why we use key, tokens, certificates, rkm etc. please advise
I was reading about Resource Bundles

as below
internationalization feature of the JDK provides a mechanism for separating user interface (UI) elements and other locale-sensitive data from the application logic in a program.
I can relate with local sensitive data separation but not the UI elements like buttons etc why we need to separate?

pelase advise






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.