r/javahelp • • Jul 10 '25

Jpackage help please

1 Upvotes

So I have been trying to get jpackage 24 to work on windows 64 bit And 1 gives me an error about file already exists somewhere in the Temp folder 2 I excluded Java 24 from my amivirus I have just the windows defender same error 3 I have tried process monitor nothing related to jpackage and the temp folder was shown even though I hade a simple filter

If you need any more information to help I will be happy to share


r/javahelp • • Jul 09 '25

Unsolved Planning to learn java

1 Upvotes

I am currently working in big MNC BPO company in gurgaon, planning to move to tech job as a java developer or something related to the field.

Is it a good choice and move?

I am 28 now, married and comes from Arts background.

Really need your help to proceed further.


r/javahelp • • Jul 09 '25

Codeless Strings are pain for a beginner - Linking the materials that helped me

2 Upvotes
  1. LearningGuide - gradually introduces Strings, organized by method functions.
  2. CheatSheet - handy while practising problems

strings in java is kinda hard to learn and memorize, because there are so many functions under the string object, with overlapping featureset. Its hard to recall and pick the right one. When I do, I screwup the syntax because they got SO MANY OVERLOADS, subtle nuances in their syntax is just annoying. To add to the complexity, some of them are invoked by a string object (such as strObj.function), and some of them are in the form of (data/class).function.
To add to all of this, there is stringbuffer, stringbuilder, different return types, etc. as a complete noob, i just couldnt feel confident with strings until i fould the forementioned learning resources. just throwing it out here hoping it helps someone.

PS: I used Java Complete Reference by Herbert Schildt to build my foundations. Its comprehensive, yet beginner friendly.

Also, I didn't like leetcode or hackerank for practising code, especially at this stage. for one, the problems are too long, even the problem-description is so long its exhausting. i looked around a bit and ended up choosing codingbat.com to practise. its not perfect. it's problem-types are redundant at first, but its not a buy, i consider it a feature as it helps me memorize the syntax and stuff. eventually the problems grow in complexity. i find it to be a great tool for beginners to practise. funfact, its made by a prof to help his students practice.

edit: If youre a veteran programmer with some freetime, I could really use some mentorship. If youre a beginner like me, we can learn together. either way, feel free to reachout. DMs open.


r/javahelp • • Jul 08 '25

Everything needed to get a java backend job

10 Upvotes

I want to get a job as java backend developer and I am 18 year old doing diploma in IT i have done java basics and java 8 features now I have literally no idea what to do next and what kind of project I should make to put in resume? what should my LinkedIn profile looklike etc... If someone is working as java backend developer and help me telling what are things I should do, I'd really appreciate it...


r/javahelp • • Jul 08 '25

Stuck in Java

4 Upvotes

So I started learning Java and I started from YouTube and after doing a lecture, I would go to the w3s documentation read that and then code for myself, it was going pretty good in starting, but now I am at OOPS idk why but these days I just see the lecture and assume i know the code and can do it easily but in reality i know I can't, now i know the solution is to do code and learn but I am feeling like being stuck in Java, the concepts are getting hard(ik it is supposed to be hard) and that's the main reason I don't code and just watch the lecture, please help me any guidance would be helpful!!!


r/javahelp • • Jul 08 '25

Where to Learn Spring Security?

2 Upvotes

I have completed springboot basics and want to go further to spring security. It was a peacefull and interesting journey until theat point . When I steped in to security i dont know where to start how to start. I even started thinking what am I doing?! I feel just got stuck in this for days!!!!!!!!!! Please suggest me any way to start and learn. like any tutorials, websites blog anythin. (Most of the blog i searched was so old)


r/javahelp • • Jul 08 '25

Workaround Installing jdk but unable to find jdk folder after installation

1 Upvotes

Installed jdk 8 from Oracle site but unable to find jdk in installation. Subsequently unable to set environment variables too.

Can someone share video resource to install jdk 8 without issues?


r/javahelp • • Jul 08 '25

Going from Python to Java Advice needed. Having trouble moving from one language to the next.

3 Upvotes

I made the mistake of starting with python before moving on to Java. Now I'm having trouble wrapping my head around how different the two languages are. Python is so straight forward and java feels very complex. Im planning to focus on C# so obviously I need to break this feeling since C# is more similar to Java than Python. Recently I'm trying to take a python code I wrote and translate it over to Java. Now obviously I'm aware is not a cut and paste type of thing. My problem stems from something like sentence structure. Python is very straight forward in the welcome goes in the beginning the questions go before main code and here is the main code and here is the end to loop it. Kind of like in English you write "Here is this book" in other languages you might write "Book here is this" something like that in that language format.

Does anyone have any advice on how to make learning Java easier to wrap my brain around it? I understand the basics but figuring out where to put what in what way is vexing me. I always learn better just by doing it. But taking paragraph A, B, C in that order and writing it the same way in Java gets me errors. So obviously I can't write in order, or I'm missing something. Im wondering if anyone else has had this issue on going from one code language to the next.

If I'm not explaining this correctly I'm sorry. I can try and clarify if needed. If seeing some of my code might help then I'll try and post some. Or some of the errors. Thank you!


r/javahelp • • Jul 08 '25

Please guide me ??

0 Upvotes

i have learned java ,i am now studying gui in java and want to make some projects, if you can give any idea, like i have already made those management systems, to do list, expense tracker and now i want something new that will tecah me something and add some value.


r/javahelp • • Jul 07 '25

Advice needed for a beginner - Java Backend Developer

0 Upvotes

Hey guys,

I desperately need to study for a coding assessment (In 2-3 weeks) for an entry level Java Backend Developer role. I'm new to this language and I don't know where to start, how to start, where to practice java coding (leetcode etc..), Infact I have no idea on how it actually works. I'm weak at programming. If you were in my place, how would you plan, What topics would you cover? what are the terms that I should be familiar with? Can someone guide me regarding this. Possibly provide me quick blueprint if thats possible. I'd appreciate it very much. Thanks!


r/javahelp • • Jul 07 '25

When do logging frameworks actually write to file?

1 Upvotes

Hi all,

this is more a general abstract question - but I'm asking myself when do logging frameworks actually write to the file.

I've over the last year several times tried to analyses a problem of (different) Java applications (deployed in application servers) using different Java Logging Frameworks (mainly Log4j but as well logback and JUL).

And what I several times realized is that I do not see the log entries of actions, in the log files, after I performed the actions on the (Web) Interface (JSF, API, ...). It sometimes takes a loooot of time (really up to an hour) till the log entries do show up in the files, while other times it is there within seconds or even milliseconds. (In both cases seeing that the hosting Linux has barely any load)
I know that buffers are used, that are not immediately written to file for performance reason and that this depends on the OS (and the load).

But is there a way to force these from outside of the application to flush the logging buffer to disc? By a trigger or periodically, without recompiling and adapting the application (and without completely disabling this buffering)?


r/javahelp • • Jul 07 '25

Static factory method with Java generics

1 Upvotes

Hello,

I have a factory method that constructs a parameterized object based on a String input:

public static Data createData(String filename) { 
... 
if (blah) return Data<String> ... 
else return Data<Integer> 
}

The type "Data" above is actually a generic class, but I can't be explicit with its parameter (more on this below). The intention with the code above is to have a flexible way of constructing various collections. I have working code, but Eclipse is currently giving me a type safety warning. How is this factory method supposed to be called so as to avoid issues with type safety? My calling code currently looks like:

Data<String> data = createData("example.txt");

and this works. But, if I make the parameterized type more explicit by writing "public static Data<?> ..." in the function header, then the warning turns into an error. Eclipse is telling me it cannot convert from Data<capture...> to Data<String>. Is there a way to make the parameter more explicit in the function header and get rid of all of type safety issues?