Ted Minh
Ted Minh

Reputation: 11

Can not run jar file on websphere

I had problem with Websphere. I want to run test.jar in websphere.

I copy test.jar in dropins and run "sh ./server start --archive="java -jar ../dropins/test.jar" Starting server --> ok But console.log empty

Upvotes: 0

Views: 556

Answers (1)

F Rowe
F Rowe

Reputation: 2064

It's not clear from your description exactly what you're trying to do, but based on your title, I assume you're trying to run a Java application. Liberty is an app server for running Java EE apps, but given that you're trying to run a file ending in .jar, that is more typical of a standalone (Java SE) app. Also, the command line you're using is mixing options, the --archive option is for specifying a target file for the server package or dump operation. See the IBM help topic https://www.ibm.com/docs/en/was-liberty/base?topic=line-server-command-options for more details. On the Liberty app server, you can deploy Java EE (not Java SE) apps by copying the .ear or .war of the app to the dropins directory. If you provide additional details about the contents of test.jar and what you're trying to achieve, you'll get a more complete answer.

Upvotes: 1

Related Questions