Skip to main content
Filter by
Sorted by
Tagged with
0 votes
1 answer
39 views

In this error ('package="io'), there has an operator " between ' and '.is it a system error? How do I solve it? Error: Namespace 'package="io.flutter.plugin.pathprovider"' is not ...
IMUL's user avatar
  • 1
0 votes
1 answer
34 views

Please help, javax mail project sending email when running it from netbeans, but when running directly from executable jar file then mail not going. and also not working on any other PC and server. ...
Rajan sharma's user avatar
0 votes
1 answer
103 views

My project uses Mapsforge library for displaying maps, and JavaFX for GUI. There is a way to compile JavaFX with javafx-maven-plugin and stay in the unmodular paradigm, but it seems against the best ...
Quasy's user avatar
  • 29
0 votes
0 answers
94 views

I'm deeply sorry since the answer may be existing already but I've failed to found it yet and the similar question part of stack overflow pointed me to some python question that doesn't really help me ...
Erwan Maigne Montamat's user avatar
0 votes
2 answers
130 views

I am trying to create a package named myUtil, inside I have two subpackages named Node and BinaryTree. Inside Node dir, I have Node.java and Node.class, and of course the first line in the java file ...
maxelpuma's user avatar
1 vote
0 answers
180 views

I want to remove the first row of a dataset but this error keeps occuring: 'JavaPackage' object is not callable. I've written another simple program for easier review. Here is my code: # Create a ...
Amirhosein Somi's user avatar
-1 votes
1 answer
1k views

# please help me to fix such thing. when I make a directory and inside such try to write java code this problem occurs. some time it does not give any error but when I run this code, this thing come ...
Abhijeet Singh's user avatar
-1 votes
1 answer
40 views

Class linkedListUse package linkedlists; public class LinkedListUse { public static void main(String[] args) { // TODO Auto-generated method stub Node head=createLL(); ...
sushma jain's user avatar
1 vote
1 answer
1k views

Compiled I've compiled the java code, but I'm not able to run it. I compiled the code with the following: javac -cp "streamer-client-java.jar:kafka-clients-3.4.0.jar:snappy-java-1.1.10.0.jar:lz4-...
Navaneeth Busha's user avatar
-2 votes
1 answer
104 views

i am new here and have a little problem. I included OpenGl into eclipse and tried to run a little test program and everything is working fine as it should, but i have a problem with the syntax. Here ...
DargPhoenix's user avatar
-3 votes
2 answers
104 views

package com.mycompany.myapp2; I want to know what this does for my application. I am a beginner. I'm trying to learn how to develop an android application. Thank you ❤️.
Iftad Abser's user avatar
1 vote
1 answer
125 views

If I have a class in a sub-package like sub-package-name, which is in a parent-package like higher-level-package-name, do I just write package "sub-package-name"; Or also add the parent-...
Tushar's user avatar
  • 53
0 votes
1 answer
106 views

So I have a Competitor.java file on path: /home/john/javaStuff/CMTR/src/part2/stage2/Competitor.java. I have VSCode open in the CMTR. So CMTR is my current working directory if that info is necessary. ...
Ecks Dee's user avatar
  • 471
3 votes
2 answers
2k views

I'm trying to import a self made package into a Java project. I got it to work once with some test class. So, when I tried to change it to an official, approved class name, the compiling stopped ...
SpacemanScott's user avatar
0 votes
0 answers
689 views

I'm attempting to use the socket.io implementation for Java. I need 2 dependencies: 1) Engine.IO Java Server and 2) Socket.IO Server Java. I'm struggling to import the actual Java packages once the ...
Josh Majors's user avatar
1 vote
0 answers
232 views

Short Version How do i do the equivalent of the hypothetical syntax: import plugin.jar.netscape.javascript.JSObject; //import netscape.javascript.JSObject from plugin.jar Long Version I am trying to ...
Ian Boyd's user avatar
  • 259k
-1 votes
1 answer
62 views

I've just noticed two different libraries sharing paths. Example is as follows. There are two seperate packages - spring-boot-actuator, spring-boot-actuator-autoconfigure. Packages included in these ...
Now.Zero's user avatar
  • 1,459
0 votes
0 answers
62 views

I have two files: file1: package firstclass.dep; public class Main { public static void main(String[] args) { System.out.println("Hello world!"); final firstclass abc = ...
Shivi Singla's user avatar
-1 votes
1 answer
236 views

My question is not if I can upload two apps with the package names <TLD>.<name>.app and <TLD>.<name>.app2. (the app's name changes here) It is if I can upload 2 apps with the ...
The Amateur Coder's user avatar
0 votes
0 answers
9 views

I'm trying to setup a java project with following structure: [Project] -parent_class -Package -child_class Importing and refrencing the child_class in the parent_class is no problem so far. The ...
melvinredeker's user avatar
-1 votes
1 answer
462 views

For example we have .toString() but we don't have .toStringAndTrim() or .toStringAndReplace(). So I want to create my own methods inside a library and when I import this library I want to access after ...
gurkan's user avatar
  • 529
0 votes
0 answers
87 views

package com.matchmove.helpingfiles; public class prefundErrorMessages { public static String error_description_when_special_character_inserted_in_product_code = "ProductCode: ...
Amit Bhalla's user avatar
1 vote
2 answers
8k views

I know that questions have been asked before, but it does not solve my problem in my school project. I downloaded the JSON.simple jar file from https://mkyong.com/java/json-simple-example-read-and-...
Yige Song's user avatar
  • 393
0 votes
1 answer
744 views

I saw this stack overflow post to know how to create executable files from java source , where it says to use javapackager he also says that it is included with Java JDK but I dont have any clue of ...
Pam Ix's user avatar
  • 468
1 vote
1 answer
4k views

Recently I started to receive the following errors about random packages: mvn build is working of course, the problem is only for building within Idea. Sometimes I can fix it with reloading maven ...
Dims's user avatar
  • 51.8k
0 votes
0 answers
620 views

I first met this problem in my Ideas, I wrote a Class that extends javax.servlet.http.HttpServlet, My Ideas throws an error message reads Error: Could not find or load main class com.bjpowernode....
kuze mhw's user avatar
0 votes
1 answer
48 views

I was trying to change javac file text but it was not changing so I tried to delete and replace it with the below text copy when I tried deleting javac in Sublime java package it pops up notification &...
Deekshith Ranga Babu's user avatar
-1 votes
1 answer
141 views

We have the controllers already being used with many apis in the package com.mycomp.myapp.controllers The controllers developed are heavy, so planning to add light weight apis with minimum request ...
sagar K's user avatar
1 vote
1 answer
3k views

I have seen a number of posts on Stack Overflow and elsewhere assert that Java does not have the concept of subpackages. One thing often pointed out is the lack of any special access relationship ...
M. Justin's user avatar
  • 23.2k
0 votes
2 answers
2k views

I am trying to to run the file Demo.java which is calling Protection class within the same package but it is giving error This is the main class. package p1; // Instantiate the various classes in p1. ...
Arpit's user avatar
  • 394
1 vote
3 answers
1k views

I have a java file ComPac.java with the below code: package com; public class ComPac{ public static void main(String[] args) { System.out.println("Hello World"); } } The ...
DockYard's user avatar
  • 1,048
1 vote
3 answers
1k views

I have the following package and class structure in my project, package de.mycompany.jakarta.order; import de.mycompany.ordermanagement.order.OrderCancellationService; public class DrugOrderManager { ...
Hari's user avatar
  • 501
1 vote
1 answer
1k views

I recently hosted a Maven package on Github's package registry and now I am trying to use it. The package is intended to provide the data models that are used by various applications, allowing my team ...
Taylor Burke's user avatar
3 votes
2 answers
3k views

I've got a folder called myModule. Inside it, there's another folder called myPackage in which my Main.class exists. Next to myPackage I have my module-info.java which I'd like to compile. First take ...
Joseph_Marzbani's user avatar
0 votes
0 answers
70 views

I am currently working on a self-project using Java SE-13 on Eclipse with Window builder. I intend to create a program that has the following design flow using individual button as the event-source. ...
user avatar
0 votes
2 answers
268 views

I was looking the HTML to PDF Conversion in android app I have a problem to do the "it must be in package ".../java/android/print/" from solution number 1. How can I add the PdfConverter.java in ...
chaviaras michalis's user avatar
1 vote
1 answer
252 views

I have several test facets sharing multiple test classes, so I aggregate them into a trait to be mixin into package objects, expecting that those test classes will be discovered under the package: (...
tribbloid's user avatar
  • 3,822
0 votes
1 answer
97 views

When I import a package to my MyLib class (which requires -cp to javac) I can no longer compile my MyMain class. MyMain.java: class MyMain { public static void main (String [] args) { ...
spraff's user avatar
  • 33.7k
-2 votes
1 answer
173 views

Hi I am trying to restructure the package but with no luck. Suppose there are multiple packages in a project like: main.java.com.wms.package1 main.java.com.wms.package2 main.java.com.wms.package3 I ...
Pramod Bhat's user avatar
0 votes
2 answers
763 views

I have started learning packages in java.I learned about the import keyword.Now my doubt is whether it is .class file or a .java file that is being imported while we import any class in java.
Shashikanth Reddy's user avatar
16 votes
2 answers
52k views

I'm setting up GeoSpark Python and after installing all the pre-requisites, I'm running the very basic code examples to test it. from pyspark.sql import SparkSession from geo_pyspark.register import ...
Jessica Chambers's user avatar
0 votes
0 answers
60 views

I have a class called PointCP2 in a file called design2 and i have package design; at the top of my class PointCP2. In my test class (PC2Test) which is in the same file I have import design2.*; at ...
uhhh's user avatar
  • 7
1 vote
0 answers
118 views

I know that starting with Java 9 (we're still on 8), it is possible to restrict access to packages for other modules, if you stick to the Java module system. We are doing Java EE and I don't know if ...
JF Meier's user avatar
  • 36.7k
1 vote
0 answers
152 views

I'm writing a Java library that has a simple interface, but a lot going on behind the scenes. In order to keep the API surface small, I've kept the library as one large package (so that I can make ...
user1902853's user avatar
2 votes
1 answer
330 views

This is a conceptual question. I usually organize code in packages logically. E.g.: math operation goes in my.package.math or business logic goes into my.package.business and so on. In these days I ...
gixlg's user avatar
  • 1,375
3 votes
1 answer
2k views

So I know that, in Java 9 modules (Project Jigsaw), split packages are not allowed. That is, the following modules couldn't both export a package with the same name and also be used at the same time ...
Nick Williams's user avatar
1 vote
6 answers
11k views

I want to run my code without creating a package in java eclipse IDE. But when I do so it is showing error : Must declare a named package because this compilation unit is associated to the named ...
Ramo's user avatar
  • 23
0 votes
1 answer
114 views

My application has 4 Java packages. com.me.utilities com.me.widget com.me.analysis com.me.interface All packages depend upon the utilities. The widget package depends upon the interface package. ...
H2ONaCl's user avatar
  • 11.5k
-1 votes
1 answer
117 views

Recently I was improving my understanding on Regular Expressions by reading Mastering Regular Expressions Third Edition by Jeffrey E. F. Friedl, there is mentions Java has had a native regex package . ...
Divya Gupta's user avatar
0 votes
1 answer
74 views

I have two folders in a folder called asdsad . ├── a │   └── A.java ├── b │   └── B.java This is my A.java package asdsad.a; public class A { public A() { } public int number; } This ...
Sparker0i's user avatar
  • 1,871