All things are lawful, but not all things are profitable.
All things are lawful, but not all things are profitable.
Knute Snortum wrote:I guess I'm confused. First, what was the command given to create this output? Is it your intention to start Jetty? If so, I don't think any more output is necessary. Did you try going to your browser and typing
http://localhost:8080/manager/text
or just
http://localhost:8080/
All things are lawful, but not all things are profitable.
Knute Snortum wrote:If you put viz.bin in the src/main/resources directory, you should get it copied to your jar file "for free", that is, without any extra configuring.
All things are lawful, but not all things are profitable.
Knute Snortum wrote:This looks like the salient error message:
So your manifest file has an invalid header field, it would seem.
All things are lawful, but not all things are profitable.
Comal Rajagopalaratnam Muthukumar wrote:But this program is using randomaccesfile that uses a .bin file to run the program...
Paul Clapham wrote:
Comal Rajagopalaratnam Muthukumar wrote:But this program is using randomaccesfile that uses a .bin file to run the program...
A RandomAccessFile? Then you won't be able to access it that way if it's deployed inside the jar file. No amount of Mavening and pomming will change that. It needs to be in the file system in the place where the jar is deployed, not inside the jar.
A common way to deal with that is for the application, when it first starts up, to read the .bin file as a resource from the jar and to write it to the user's home directory. Then it can access it as a random-access file from there. There are more details about how to do that which you may not be familiar with, but it's possible that I have misunderstood your problem so I won't go into them yet.
brevity is the soul of wit - shakepeare. Tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
|