How do I make a probability between two numbers?
I tried to make a number randomization system for my text game, but I want to make it so that there are more than two probabilities, like if(rand.nextInt(100) <= 25, and after that I would put something like this, if(rand .nextInt(100) >= 26 && <= 75, however eclipse says that I cannot use && in a Boolean code or int code and also tells me to delete the <=, how do I do something like that without giving an error?
How can I desable the passive mode in Eclipse IDE for java?
I have the passive mode activated and I dont know how to desable it. Can someone help me?
How to fix this persistent Eclipse IDE java error
Error: Could not find or load main class Unit2.ReadNames2 Caused by: java.lang.ClassNotFoundException: Unit2.ReadNames2 The above error is produced every single time I try to run any of my (newer or recently edited) class in any of my Java projects on my Eclispe IDE. But what confuses me even more is that if I try to […]
How to establish debug mode in local Eclipse when the application is running on a different server?
I have provided the appropriate details (IP address and port number) of the server where my application is running in the Remote Java Application. However, my eclipse is installed in my local. When I try to start debug, it says VM can’t connect.
Eclipse crashes as soon as I try to do something (Ubuntu)
This morning I’ve installed Java SDK on my Ubuntu (version 23.10) machine, tried it with some classes writte in text editor and decided to download Eclipse.
However, after installing it from the Ubuntu “App Center” and starting it I noticed that as soon as I tried to write the main method to do the usual hello world print for testing, it crashed: it made me make the project, the package,the class; but as I wrote the dot in “System.” it crashed generating a log file like “hs_err_pid4182.log”.
I’ve tried installing other Eclipse versions (from the official site like 2023-09, 2023-03, 2024-03) but nothing and the same happens with different versions of Java.
Then I tried not to create my own project but to press on the “Build Hello World app” in the Eclipse menu (when you start it up) and it crashes…
Java Eclipse compilation problem, “The package org.xml.sax is accessible from more than one module: , java.xml”, how to fix?
I wrote my Java codes based on Apache Tika for my search engine project. I followed the following link to start my Tika project:
Apache Tika example
The codes are pretty simple but I always came up with this compilation error:
“The package org.xml.sax is accessible from more than one module: , java.xml”
The error happens at:
import org.xml.sax.SAXException;
How to get rid of old files originating from previously deleted projects in Eclipse’s history?
In one of my Eclipse workspaces, I have a significant size of local history (I mean the total size of files under workspace.metadata.pluginsorg.eclipse.core.resources.history
), exceeding 1.5 GB. Upon checking the contents of the directory, I discovered numerous versions of rather large text files, 5 – 10 MB each, which were part of a project I worked on about a year ago.
eclipse java.lang.module.FindException error
enter image description hereI’ve tried a lot, but I don’t know a clear solution.
class not found Problem. Can yall help me to fix it? [closed]
Closed 4 mins ago.