1,092 questions
0
votes
0
answers
60
views
I show this error message when I run java 3d :Can't load AMD 64-bit .dll on a IA 32-bit platform
When I downloaded the java 3d api library from the oracle site version 1.5.1 and placed it correctly in the files of the bluej program version 4.1.2, this error message appears to me when running the ...
0
votes
0
answers
112
views
How to update BlueJ Java jdk and JavaFX versions
I recently got the warning, when starting a project using Bluej (under Windows 10):
javafx.fxml.FXMLLoader$ValueElement processValue
WARNING: Loading FXML document with JavaFX API of version 23.0.1 ...
0
votes
1
answer
95
views
Why is my output different after each execution of the program?
So I am new to java and was trying to learn about simple data structure and wrote a program in bluej to pop in a stack. However after compiling and executing the program the output is different each ...
0
votes
2
answers
63
views
My program keeps stuttering after the 2nd loop, at grades. It would leave a blank line for a value. Is there any way to solve this?
My program keeps stuttering after the 2nd loop, at the grades user input. It would leave a blank line for a value, accepts the value, and would continue doing that for the rest of the loop, never the ...
0
votes
0
answers
66
views
Bluej throws SSLHandshakeException making http request
Simple http request application works outside Bluej but in Bluej throws exception.
import java.io.IOException;
import java.net.URI;
import java.net.http.HttpClient;
import java.net.http.HttpRequest;
...
1
vote
1
answer
445
views
How do you change the default startup code on BlueJ?
Every time I start BLueJ up, create a new project, and create a class in the project, and open the editor, it defaults to some pre-written code, and I was wondering if I could change that so every ...
0
votes
2
answers
93
views
How to check decimal values with if-else construct accurately?
I was doing a simple program for calculating the area of a scalene triangle. We basically have to first calculate the area and then input 5 answers and check how many are correct. However, whenever I ...
0
votes
1
answer
332
views
JUnit test failing using assertEquals on a method that returns a StringBuilder
In testing a Fleet Management application, multiple tests are failing in regards to making sure that a specific report of vehicles, which returns a StringBuilder, contains the actual data given to it. ...
0
votes
2
answers
102
views
File not found when trying to pass user given file to new scanner object
public void readItemData()
{
try {
Frame frame = null;
FileDialog fileBox = new FileDialog(frame ,"Open", FileDialog.LOAD);
fileBox.setVisible(...
0
votes
1
answer
260
views
How to create a unit test for a method searching keywords within a list of objects?
I have a Library application and am trying to create tests for the methods in it. The books in the list being searched consist of a title, author, and ISBN number. The tests for the ISBN search method ...
3
votes
3
answers
179
views
Creating an even and odd array of specific parameters from an original array
Write a program to accept 15 random numbers into a 1D array. Sort the array using Bubble Sort. After sorting, transfer and store all the even numbers and odd numbers into separate arrays. Display the ...
0
votes
1
answer
124
views
How can I fix this strange text in Blue J
I downloaded the program from the official website, had a normal installation, and literally without move anything, I got this strange language text, I tried to change language in preferences trying ...
0
votes
0
answers
3k
views
I'm getting this error: WARNING: Unsupported JavaFX configuration: classes were loaded from 'unnamed module @c6018c6'. What should I do?
Before I updated BlueJ this program worked fine, but now that I have updated to version 5.1.0 the program doesn't work and shows the above error message. If you need more info on the error message I ...
1
vote
1
answer
464
views
Java 8 JDK is installed but installing BlueJ fails
I'm using linux OS with Debian 11 distribution. I'm using this this documentation.
The output of javac -version is javac 1.8.0_371 indicating that I have Java 8 JDK installed.
I downloaded the ...
-1
votes
1
answer
263
views
i was getting the error: undeclared variable: IO in the following java program, but the code is right according to my knowledge
public class CourseGrade {
public static void main(String[] args) {
int examWeight = 70;
int labWeight = 20;
int hwWeight = 10;
double examScore;
double ...