« first day (4121 days earlier)      last day (822 days later) » 

4:24 AM
@Wietlol agreed
 
 
4 hours later…
8:19 AM
Goodm orning
 
8:38 AM
gooda fternoon
 
9:24 AM
Hello humans :)
I learn PowerShell right now. Do you have an idea what I could automate (for you)?
 
10:17 AM
Nice
I have an idea, because I tried and made it like, 90% so it works but suboptimal
Make a script to change used java versions on the fly
Like, I currently have jdk 8 and 16 installed
Some things need 8, but when I can I wanna use 16
So basically I have to change 1) JAVA_HOME and 2) PATH-Entry
Let's pretend all java installation ever are and wlil be installed under C:\Program Files\java\{version}
That would be nice thanks :)
 
10:48 AM
what things require Java 8?
@kame I think @CaptainObvious has something you might automate :)
 
11:36 AM
For example Pentahoo Data Integration, formerly "Spoon", a program to make data marts from a data warehouse.
Or of course the project given by our prof we have to work with
But yeah, real world stuff so far only BI/OLAP things that seem to just not be updated ever
 
I can run almost everything with the latest (experimental) jre
only compilers depend on specific versions because they want to know the content of that specific version I am compiling to
so, only Gradle, Maven and IntelliJ really demand older versions afaik
unless the tools you mentioned actually use the sun api
which is so far the only real thing that actually got removed from the jdk
 
11:58 AM
No idea why exactly, I just realised I was on the wrong jdk after like 30 minutes of wondering how the fuck I misconfigured a desktop application so it won't work.
And similar problem with mondrian server where it couldn't find some class through reflection lol. Guess that happens when you rely on implementation.
 
 
2 hours later…
1:43 PM
@Squirrelkiller You can bundle the JRE you need with your application. Works very well, since it gives you guarantee that the application works, regardless of which (if any) Java is installed on the computer. Why more Java developers don't do that, I cannot tell you.
Although, TBH, I've not really followed through what happened with the licensing post Java 8-9. Bundling the JRE for redistribution used to be OK, not sure if Oracle have changed that when they changed the licensing stuff.
At any rate, if you want to have different Java executions to run with different Java version, I'd suggest to just make a small script that changes the environment variables for the current execution and then launches the Java application. Can't remember exactly how you do that with Batch script or PS script but you can do something like "launch this with current environment variables". After you've set them, of course.
The program should then be using the env vars from execution time, not the ones set globally
You could also just have a shortcut that's like "C:\Program Files\Java\jdk1.8.0\bin\java.exe" -jar program1.jar and "C:\Program Files\Java\jdk1.9.0\bin\java.exe" -jar program2.jar however, if those happen to use environment variables, it might be a problem.
 
2:29 PM
set JAVA_HOME=%JAVA_8_HOME%
and you would set the JAVA_8_HOME global variable to the java8 home
after running the above command, all other commands running in the same session should use java-8
 
3:03 PM
Lori Colston on January 27, 2022
An introduction to psychological safety and ways to evaluate the level of safety in your organization.
 

« first day (4121 days earlier)      last day (822 days later) »