Java Community | Help. Code. Learn.

JCH

Java Community | Help. Code. Learn.

We are a Community full of Java developers. Connect with other devs, get help, help others and do much more!

Join

java-help

❓︱qotw-answers

File Encryption

I was working on a project where i wanted to encrypt a file and then decrypt it. I got it working, but the key is hard coded in which i know you shouldn't do. I ma trying to figure out how i could securly do this. I want it to be download the application and the user doesnt need to do anything. https://sourceb.in/43xrL5xbBC

How do you apply libraries to multi module gradle project from root level?

I would like to use a library throughout multiple modules in my project. In order to keep all the configuration for this library in one spot, I am wondering if it is possible to apply it at the root level. How do I do this? This library is an external third party library, not a module that other modules in the same project depend on.

Java Errors

https://sourceb.in/7HPeL01Jtk Hey, I am currently learning java for the first time, and I was experiencing some errors, and I was hoping if I could get assistance regarding them. Thanks!...
No description

Errors

What does it say and can you help me debug it ?
No description

Questions About GroupIDs, Namespaces & Package Management

Hey there, I'm pretty new to the internet world of things around programming and I want to somewhat build my own presence online, so I would like to know your suggestions around managing my GitHub, as a Java Developer, how should I name my packages for the most optimal visitor experience and SEO side of things... I currently have a .me domain, it's skywolfxp.me, recently I have considered switching over my personal domain to something that's cheaper such as .dev, not in the scope of this post but my question is: should I switch from using io.github.skywolfxp as my GroupID? or should I keep using it? does it help with search results because GitHub is all over Google for example...? Also, if I should change to my own domain, if I'm thinking about using a different domain for everything, should I switch from now or can I wait till my .me domain expires?...

Please Help

Started a new module for the course I'm taking, this is the first one since I started that I've really struggled with and can't seem to find the solution. I know the code is a bit of a mess but if anyone could tell me what's wrong I'd really appreciate it.
No description

POJOs question

I know the necessary distinctions between DTO, Domain and Entity models but do I really need a separate model for Domain and Request/Response objects for APIs? If I call an external api to my system with a request body I expect and a response object I expect, can those just be domain models or do they need to be separate models? Esp with regard to hexagonal architecture where the rquest/response objects are typically in adapter layer and domain models are considered separate....

What libraries are used for GRPC server and client in java?

What would you use w/o using spring boot libraries?

can t seem to find the backend controller

been trying for 2-3 hour ish but doesn t wanna connect

Missing compile time sources

I went in and split my Server Side annotation processor to a shared one to mount to my client side implementation due to shared sources. It seems configured decently but for some reason it tells me unknown classes even though intelij shows them just right. ```kotlin...

CLI Build / Packaging tool for a LWJGL-based Game Engine advice?

So I have built a Minimum Viable Product (MVP) CLI tool for a gaming engine that uses LWJGL (Light Weight Java Gaming Library) as a foundation, and I was curious as to if anyone is aware of any useful libraries / tools (currently using jpackage / jlink ofc) to help with the tool. In addition, if anyone knows any pitfalls I would be really appreciative. For example, one I have found is that, at least on linux, its a bit of a pain to set my Maven Home directory to work with the CLI + also ensuring I have the right JDK installed locally to use the CLI tool (Is there a way to sanity check / package the JDK with the tool, though I imagine that is a fundamentally moronic idea? xD) Another factor is that, eventually, I would like to implement the tool into a Swing/JavaFX editor, so any patterns / libraries / architecture structure advice to ensure an easy transition would be appreciated too 😄 ...

discord bot slash command

hello i created slash command like 3days ago but i cant still use it others slash commandss is working
No description

C language help

Hi im doing a project in C language, and I've worked on it for about 3 days now and made 0 progress, this is really my last resort/ call for assistance. Any help would be appreciated thanks

jpanel not fit

jpanel is not fitting in my laptop screen but fits on my school computer

Package does not exist

my java file seems to think that the package i imported com.toedter.calendar.*; does not exist. I don't see how this is possible due to the file that contains the package (jcalendar-1.4.jar) is in my Referenced Libraries. The first picture is my folder structure. The second picture is the .jar files in my referenced libraries....
No description

Need help with a project

My friends are making a Google docs to slides project using java and the slides writer portion isn't helping, can anyone help us?

i cant get the file with the file path

i was trying to read a text file in the resources file(i was using maven) but it wont work with relative path, im using filereader

Hello nice to meet you everyone

i am looking for github repos with documentation and help to start developing apps with android studio.

What is the difference between == and .equals() in Java? Can you give an example where using one ove

String a = new String("monzo"); String b = new String("monzo"); System.out.println(a == b); // false System.out.println(a.equals(b)); // true...

eclipse unable to create maven project

hello guys please i'm trying to create maven project but when i try to searche for maven archetype simple i don't find it how fix that