Submit

Back to the channels

#java

  1. bogdomania Hello, I'm trying to run a java app from within Intellij, and I get this error "Exception in thread "main" java.awt.HeadlessException:
  2. bogdomania No X11 DISPLAY variable was set.." Can someone point me in the right direction, please?
  3. bogdomania Running Fedora 45 Silverblue, btw
  4. bogdomania openjdk-25 installed
  5. ernimril bogdomania, are you on linux? windows or mac? X11 is the old windowing system for unix and linux, on linux your desktop typically runs wayland with an xwayland server that satisfies the X11 java wants, but depending on OS and how you run that may not be the case
  6. bogdomania Fedora 45, linux, wayland
  7. ernimril are you trying to run java as root / with sudo or something?
  8. ernimril or is your intellij running in some virtual environment?
  9. bogdomania no, I'm just trying to run a simple app directly from Intellij
  10. bogdomania yea, Fedora 45 Silverblue is immutable
  11. bogdomania And I got Intellij installed as a Flatpack
  12. ernimril ah, then that is the problem...
  13. ernimril check this: https://github.com/flathub/com.jetbrains.IntelliJ-IDEA-Ultimate
  14. ernimril The section "Running GUI app from IDE"
  15. ernimril So, when I asked if you are running inside some virtual environment the answer actually was: yes, with flatpack
  16. dreamreal ernimril: ++
  17. nevet ernimril now has karma of 1.
  18. node1 Any one need developer?
  19. dreamreal node1: that's not the way to get a job here, as we've now said TO YOU at least three times, maybe more
  20. node1 :(
  21. node1 Then how should I ask? I always try to communicate politely and humbly.
  22. dreamreal You watch, you watch job boards, you participate, occasionally someone in here will have a need and associate that need with *people they know*
  23. dreamreal i.e., I know if I had a need for a parser, I know exactly who I'd talk to in here, and since I know a lot of people in here, I know who's looking and who's not
  24. dreamreal and yes, if you're going "is dreamreal talking about me? I'd be perfect for that!" I am probably talking about you, $person
  25. dreamreal unfortunately, i am not describing an actual need
  26. node1 That's exactly what I'm trying to build genuine connections.
  27. node1 I know many of you have strong networks and experience finding and having projects.
  28. node1 Honestly, I'm mostly working alone with my computer, only a communication means is IRC, and emails. I'm just hoping to connect with people who can trust me, give me an opportunity, and grow together.
  29. bogdomania ernimril, excellent, it worked, thank you very much.
  30. dreamreal node1: by saying "anyone hiring?"
  31. dreamreal that's not telling us ANYTHING but that you're looking
  32. dreamreal look at ernimril and bogdomania here - THAT's the way to get hired
  33. node1 yes i understand i just raise casual; but yeah, sorry if it disturbed you.
  34. dreamreal It doesn't *disturb* me - it's just inefficient and I don't want people to be inefficient
  35. dreamreal Heck, I want you to find a job you want
  36. node1 Please. :)
  37. jsmooth Has j2se changed much in 10 years?
  38. jsmooth I was told at some point in the past that there is no j2se or j2ee anymore, but just java..is that true?
  39. jsmooth I learned to write java before 2015. wrote part of a chat server and client, but didin't finish it.
  40. Para Yeah, there's no profiles anymore.
  41. jsmooth DO I need to re-learn for gui development using multi-threading?
  42. Para EE is under label Jakarta, no JRE/JDK distinction either (besides some weirdo distros enforcing it by making them by themselves). Multiple equal JDK builds from various orgs and companies exist. Doesn't matter much which you use.
  43. jsmooth Aren't there official releases anymore?
  44. Para Multi-threading has advanced leap and bounds, including virtual threads but just the APIs themselves are better. GUI wise awt is pretty much dead, Swing is still usable but I think most at least want to use JavaFX.
  45. Para Both Oracle makes JavaSE (not to be confused with the similar name of the old; this one's licensed with a cost) and OpenJDK does its own official releases as well.
  46. jsmooth I could hardl yfind any help when I tried to use javafx.
  47. Para Java on desktop is very niche nowadays.
  48. Para you might want to read through this https://www.marcobehler.com/guides/a-guide-to-java-versions-and-features
  49. Para ...and other similar articles. Each version has some significant changes, mostly additions.
  50. Para What you know of gc:s from +10 years ago probably doesn't apply anymore :)
  51. jsmooth gcs?
  52. Para Garbage collectors.
  53. dreamreal errrr
  54. dreamreal Para: I disagree
  55. Para dreamreal: not as is
  56. dreamreal j2ee and jakarta ee are directly threaded, and while the features are more closely related to what spring would have recommended as far back as 2005, it's still a thing
  57. Para I sometimes use as an interview question "What do you think is the coolest (relatively) new Java feature?"
  58. MikeBux Para: i wouldn't know how to answer that :-)
  59. Para MikeBux: Open ended and slightly unfair questions are nice every now and then :)
  60. MikeBux yeah, currently looking for a new job, but at my age it gets harder than ever
  61. Para yeah I don't understand the job market currently at all
  62. MikeBux Well, A.I. seems to kill jobs faster than we thought
  63. Para Well, yes and no. It definitely has caused overspending and general analysis paralysis.
  64. MikeBux well definitely
  65. MikeBux and now teams get resized
  66. Para Spend 2x since someone promised 10x to find out you're maybe at 1.5x but you couldn't really even afford 1.2x so now you're just f'd.
  67. MikeBux i learned that vibe-coding needs skills, but you are faster if you know how
  68. Para Yep. Agent wrangling is definitely a skill.
  69. Para It's sort of like herding cats. But there's just singular cat. Who's wired to serve the end result by using all means possible.
  70. jbosmans lol cats herd you, not the other way around
  71. DoofusCanadensis I spent my morning untangling my cat's leash from trees
  72. Para I almost wanted to ask if your cat is somehow outside the realm of physics to justify that plural but...cats.
  73. DoofusCanadensis cats are always outside the realm of physics
  74. NeXeN reminds me of some edgar allen poetry

Search posts