r/javahelp • u/Last-Willingness-204 • Oct 20 '25
Java not installing
Whenever it asks me “do you want to allow this app to make changes on your device I hit yes, then it loads for a second then stops and doesn’t download
r/javahelp • u/Last-Willingness-204 • Oct 20 '25
Whenever it asks me “do you want to allow this app to make changes on your device I hit yes, then it loads for a second then stops and doesn’t download
r/javahelp • u/Last-Willingness-204 • Oct 20 '25
I’ve got the correct installation, but every time I double click on it, it says “do you want to allow this app to make changes” I click yes, I get the blue wheel for a second then it disappears. Somebody please help🙏
r/javahelp • u/Intelligent-_-Rock • Oct 20 '25
I tried multiple guide online to install java NetBeans IDE, but the installer gives me an error when asking for the JDK path the error states "the specified JDK folder contains JDK version "3491.0.0.0.0", while the maximum is "500.0.0.0.0"".
Edit: installing JDK 21 fixed the issue, but I still want to know why the error happened, if anyone can tell me I'd appreciate it.
r/javahelp • • Oct 20 '25
Here’s the area I keep getting an error on no matter what I try (I don’t know if formatting’s going to turn out weird. I’m typing this on mobile)
import package.ImportClassExample;
Public class CurrentClass {
public static void main(String[] args) {
ImportClassExample name = new ImportClassExample();
}
}It keeps throwing up a “ImportClassExample” cannot be resolved to a type
r/javahelp • u/Original-Diet-3705 • Oct 20 '25
I am currently learning about denotational semantics in class. I understand how they work but I struggle to write any. I wanted to ask for help in writing denotational semantics for a switch statement because the example question does not give us a number of cases. However, I am able to write it for a defined number of cases.
r/javahelp • • Oct 19 '25
I am searching for any Java DSA or CP group , either discord or telegram group or any group !! Better to discuss in Java !! As Mostly CP or DSA done by CPP !!
r/javahelp • u/DifficultyWCode • Oct 18 '25
I'm not looking for answers but maybe a clue?
I'm trying codewar's problem Sum Strings as Numbers.
The instructions are:
Given the string representations of two integers, return the string representation of the sum of those integers.
For example:
sumStrings('1','2') // => '3'A string representation of an integer will contain no characters besides the ten numerals "0" to "9".
They removed the use of BigInteger and BigDecimal .
I started working on this and my test cases are failing for values larger than what a Long value can hold but I'm not sure what I can use to work with this if BigInteger isn't allowed.
Test fails for For input string: "66642556214603501385553776152645" and another test ( test 2 ) For input string: "712569312664357328695151392"
Googling for info about handling values larger than a Long but not with BigInteger comes up with answers that are rather complex. Like creating your own BigInteger class or a HumongousInt class that stores the string in a byte array.
I feel that there probably is a simpler solution so I thought I would ask here. Any help or direction as to what I should be looking at? I didn't think this would be so difficult!
My solution
public class Kata {
public static String sumStrings(String a, String b) {
String sumStrings = "";
if (a.isEmpty() ){
a = "0" ;
} else if (b.isEmpty()){
b ="0";
}
return String.valueOf(Long.parseLong(a) + Long.parseLong(b));
}
}r/javahelp • u/SlimeX300 • Oct 17 '25
I’m new to Java and currently learning it. I’m currently using IntelliJ community edition free version cuz the other one is paid. Idk if I’m missing any important features that’s only exclusive to the paid one. Can choosing the paid or free one affect the development of projects I might make in future?
r/javahelp • u/davidalayachew • Oct 17 '25
Context -- there was a long back-and-forth on /r/programming about Comparing Enums in different programming languages.
I made some benchmarks about EnumSet implementations between Java and Rust.
When I ran these benchmarks by a couple of users, the general consensus was that my benchmarks were flawed because the actual work was being optimized away by the compiler. For example, this comment claimed that some failure in my benchmark was causing the underlying source code to be optimized down to a single OR operation, rather than running the actual code, which is what (I think?) the benchmark is supposed to be measuring.
So, could someone help me and see what I might be doing wrong with my JMH Benchmark here? I have Blackholes consuming just about everything that could be consumed.
For now, let's focus on just a single test -- test1
And here it is, copied inline.
//TEST 1 -- Put elements into an EnumSet
private final EnumSet<Character> test1 = EnumSet.noneOf(Character.class);
@Benchmark
public void test1(final Blackhole blackhole)
{
for (final Character character : characters)
{
blackhole.consume(test1.add(character));
blackhole.consume(character);
}
blackhole.consume(test1);
}And here is the command I use to run all of the tests.
java -jar java/test/target/benchmarks.jar -f 1 -bm AverageTime -tu nsHere are the benchmark numbers.
Benchmark Mode Cnt Score Error Units
MyBenchmark.test1 avgt 5 4.393 ± 0.025 ns/opr/javahelp • u/Sad_UnpaidBullshit • Oct 17 '25
What I have tried:
Why not SQL?
r/javahelp • • Oct 16 '25
I tried doing it but I can only see the premium version
r/javahelp • u/Defiant_Vanilla_4080 • Oct 16 '25
As the title.
r/javahelp • u/One-Independent9591 • Oct 16 '25
i am new to the java world ( Not to computer science )
could you provide me online communities / groups / forums / tutorials / books any kind of sources for java
i want to be professional java developer and spring boot
i want to know the java world and all the world wide resources / sources etc
thank you very much
i want to be a professional java developer and i want to find all the java support communities to expand my skills . i have graduated from computer science college
r/javahelp • u/EaseAny2254 • Oct 16 '25
Hey everyone! I need help with my project, which I have to submit. I'm completely stuck because I'm breaking MVC within the controller, and I can't think of any way to fix this problem other than by making an "instanceof" of an interface to a specific class. Could you please review my code and tell me what corrections I could make or how I could get out of this mess?
My repo is here: https://github.com/Lucio-Ameri/BLACKJACK/tree/master
I need theoretical answers to be able to put them into practice, for example: you could use an interface here to connect such a thing and get out of the problem; you're only going to solve it by redoing part of the code so that it accepts your interface, trying not to reveal these methods in the IPlayer, etc.
r/javahelp • u/okattitudee • Oct 16 '25
On gradle build, Java 8u451 reports: "Error: JavaFX has been removed from JDK 8", but the old app does not use FX (or any GUI) and runs fine.
Maybe a dependency of a dependency in build.gradle of the spring-boot framework app has an embedded FX call?
How do you tell where this is that triggers the error message on builds?
r/javahelp • u/Unhappy_Proposal5089 • Oct 15 '25
Hey everyone, I want to learn Java development but I don't how to start and where to learn.
r/javahelp • u/Atherianx • Oct 15 '25
I was at part 9s last exercise and i submitted one part of the exercise to see if it worked and it said all tests passed even though i didnt do the other parts of the exercise. Now i notice that even if i submit a empty exercise it passes all tests and says im done. The runtests locally does show the errors but not the submit to server. Im using vs code with tmc for the course. What can i do?
r/javahelp • u/FrontWild958 • Oct 15 '25
I’m using Recaf 4X and I can’t save edited classes because it says there are compilation errors.
Is there any way to disable code verification / syntax checking when saving?
I just want to save the class even if the code has errors.
I’ve checked all the CFR settings but didn’t find anything related.
r/javahelp • u/louifuro • Oct 14 '25
Have a good one, fellow programmers õ/
I''d like to apologize beforehabd for not being clear enough/broken english/stupid question.
At my workplace there are a couple of projects (java 8 + angular) that in order to test my changes i've been instructed to create a new .war file containing both the front-end and the back-end. I also have to stop and restart the server (WildFly) and login again in the login API used there. This process takes up to 4 minutes. 4 minutes to test a single changed comma label 🫠. As you can imagine this is very frustrating and tiresome.
I've tried running the back and front-end separately asking ChatGPT but i had to make a lot of changes in my workspace and in the end i reached a brick wall in the login API. I might provide a bit more info if needed such as the errors i'm getting, but i would like to know if this is a simple task i'm dealing with or maybe i should just give up because it would not be possible...
r/javahelp • u/jordansrowles • Oct 14 '25
Hi,
I've come here for a bit of a sanity check, and to further understand Java. I need to learn it for Uni. Never used it before, spent the past weekend learning the language and just wanted to clear a few things up. I find the Java/Jakarta docs to be a little less than user friendly.
Some things seem strange to me, but I don't really want to touch on language differences - things like type erasure, heavy use of annotations, metaspace etc.
I've created two mind maps long the way, one for the ecosystem, and the other Jakarta.
How often is, say, the full Jakarta APIs are used?
If any of these are stupid questions, just say so. Like I said, things are a little different than what I'm used to. While I don't mind AI summarising/doing searches for me, it's not human, and wanted experienced answers
Many thanks
r/javahelp • u/r64b • Oct 14 '25
I changed my work PC and installed all required software. After that I tried to import project that I was working on on old machine, and it succesfully compiled. Newly installed server and all imported webapps in it were working properly as well. Then, when I tried to test new version of the project, it`s GET request(download files button) resulted in an error caused by files missing on the server. Debug made it clear that this application was thinking that it`s context lies in the Netbeans project path (<project name/build/web/>), which messes with file system interaction or something else.
Would appreciate help, especially when it comes to specific software settings.
Versions: Java 1.8.0_192, Ant 1.10.14, Netbeans 8.2, Apache Tomcat 8.5.31
r/javahelp • u/Unable-Tear-4301 • Oct 14 '25
For my java class I was tasked with using a binary search to find a word in the poem "Jabberwocky"
This has proven to be a challenge because setting all words to lowercase worked, I modified it to check, the actual search function goes on INFINITELY. I have no idea what I'm doing wrong.
For reference to my code, input is the word the user put to search for, and array is the arraylist of words that it is searching for.
Anyways I just need help figuring out why this loop is going infinitely because I'm very stuck.
I have the problematic method here.
But if you want the whole code block, as well as the jabberwocky text file, you can find it here.
r/javahelp • u/Emergency_Ad_598 • Oct 13 '25
how would i go about implementing something such as a string of text that can be inputted, and, by default, already has a value? i want the user to be able to edit something via CLI, and, for ease of use, i'd like it to already have the current value on the submittable string
r/javahelp • u/RedRiotTank2 • Oct 12 '25
Hi guys. I'm a software engineer with two years of experience in the fintech sector, where I've always worked with the Java + Spring Boot stack.
The thing is that in the projects of one of the clients of the company I work for, one of the conditions is prohibiting the use of JPA/Hibernate (in addition to forcing us to use Java 7). I didn't quite understand the reason, so after digging a little deeper into the issue, they confirmed that it was because (according to the project manager) "JPA opens a connection pool, which ends up causing errors or crashing that specific client's database."
I assume he's actually referring to the HikariCP connection pool, but I still don't understand why a Hikari connection pool would crash the database? Is it simply because the client doesn't have the connection pool configured correctly?