« first day (3819 days earlier)      last day (1346 days later) » 

00:00
"One lawyer can steal more than a hundred men with guns." -- The Godfather (source)
00:29
farts
 
6 hours later…
06:29
nods off
 
2 hours later…
08:50
@Trajan you probably need to close the writer
or better yet, use try-with-resources
09:00
thanks
226
Q: How to run a JAR file

moonI created a JAR file like this: jar cf Predit.jar *.* I ran this JAR file by double clicking on it (it didn't work). So I ran it from the DOS prompt like this: java -jar Predit.jar It raised "Failed to load main class" exceptions. So I extracted this JAR file: jar -xf Predit.jar and I ra...

I have the same problem, but I have got my Main-Class: Main already
I built it in intellij
no main manifest attribute, in <javafile>.jar
581
Q: How to build jars from IntelliJ properly?

ripper234I have a project that contains a single module, and some dependencies. I'd like to create a jar, in a separate directory, that contains the compiled module. In addition, I'd like to have the dependencies present beside my module. No matter how I twist IntelliJ's "build jar" process, the output o...

i followed this perfectly
09:41
Ive put this question on stack overflow now
check out my profile if you want points for answering it
why do people downvote my questions?
 
2 hours later…
11:26
@Trajan we never know
except if it is quite obvious, like this one
it is removed though, but from the url, you might be able to deduce the context of the question
I assume that wasnt your question :)
as for running a JAR, you need to build it in a special way in gradle/maven
I use maven, so I know how to do it there, but not in gradle
basically you want 2 things:
1, a main manifest
2, a fat jar
154
A: Gradle - no main manifest attribute

StanislavTry to change your manifest attributes like: jar { manifest { attributes( 'Class-Path': configurations.compile.collect { it.getName() }.join(' '), 'Main-Class': 'hello.HelloWorld' ) } } And then just change 'hello.helloWorld' to '<your packagename>.<the name of your Mai...

^ probably fix for 1
^ probably fix for 2, although probably too much information for you to care... also a fix for 1
then you run the gradle package command and it will generate a jar that you can execute
12:05
@Wietlol thanks again
12:58
posted on April 07, 2021

archive - contact - sexy exciting merchandise - search - about ← previousApril 7th, 2021nextApril 7th, 2021: BEHIND THE SCENES: despite the fact Batman does not appear in this comic, I still wrote this comic while thinking about Batman! Strange but true!!– Ryan

 
1 hour later…
14:16
/javadoc Arrays.tolist
@KarelG Sorry, I never heard of that class. :(
/javadoc arrays#aslist
@KarelG Sorry, I never heard of that class. :(
why does it not work directly with arrays
aaaah *pats head* type conversion (int -> Integer)
 
1 hour later…
15:28
There is a "List.toList" method in newer versions of Java, I believe.
java 11 ;_;
not sure if it supports boxing though
 
2 hours later…
17:24
I have a springboot application that need to connect with AWS RDS postgres instance how should I dockerize that.
18:13
guidance will be appreciated

« first day (3819 days earlier)      last day (1346 days later) »