Java.lang.class is a runtime representation of classes and interfaces.
Questions tagged [java.lang.class]
97 questions
0
votes
1 answer
java swing getting issue in Jlabel
i am learning Swing in JAVA.. i've try simple label by this way
package testswing;
import java.awt.EventQueue;
public class tt {
private JFrame frame;
/**
* Launch the application.
*/
public static void main(String[] args)…

Android
- 8,995
- 9
- 67
- 108
0
votes
2 answers
Why don't I see the output of the following program when I run it in Netbeans?
The program compiles and gives no error. When I run the program in the latest Netbeans (Latest Java Installed), I don't see the output.
I have taken the idea for the code from book Java 7 Third Edition chapter 5. The topic under discussion is using…

Ajmal Khan
- 3
- 2
0
votes
1 answer
nutch 1.2 solr 3.1 integration issue
I have crawled a site successfully using NUTCH 1.2 .Now I want to integrate this with solr 3.1 . Problem is when I am issuing command $ bin/nutch solrindex localhost:8080/solr/ crawl/crawldb crawl/linkdb cra wl/segments/* an error occurs. I am…

DEVANG PANDEY
- 157
- 2
- 15
0
votes
1 answer
Type Can only iterate over an array or an instance of java.lang.Iterable , upload image android
I'm a .net developer and I have been working in Visual Studio for the past 3-4 years, but now my boss asked me to create some Android app, so I have to go back to my college time and practice my Java skills (not that good). Now, the app is prety…

Jesus Montero
- 1
- 2
0
votes
2 answers
Android SQLite Attempt to unlock read lock, not locked by current thread
My application was running fine, until I stumbled across this SQLite error:
java.lang.IllegalMoniterStateException: attempt to unlock read lock, not locked by current thread
I've tried all the other answers on StackOverflow, but they didn't seem to…

Buneme Kyakilika
- 1,202
- 3
- 13
- 34
0
votes
1 answer
netbeans 7.2.1 with mysql connection java.lang.ClassNotFoundException
i am working on servlet and when i run the servlet i got error in explorer which says
type Exception report
message
descriptionThe server encountered an internal error () that prevented it from fulfilling this…

Parth Joshi
- 63
- 1
- 1
- 4
0
votes
1 answer
Get a Set (or Collection) of all classes in java.lang package
I am writing a compiler for Java, and would like to implicitly import java.lang package to all source files (This is what most Java compilers that I know of do).
To do that, I need to somehow obtain either a set of all classes (ie.,Set>) or…

user1801813
- 9
- 3
0
votes
2 answers
Android java.lang.Outofmemorry+imports
I would like ask you simple question.
I fight with java.lang.outofmemory error. I
t is caused probably by pictures but also I have in my project quite alot unused imports and unused variables at this moment (application with 7 activities and every…

mira
- 1,056
- 3
- 15
- 32
0
votes
2 answers
FATAL EXCEPTION: Main java.lang.RuntimeException:
I know there are already numerous entries about how to solve a Fatal Exception, but none of them solved my problem. I am working on a very simple calculator that has nine buttons, an edit text, and a text view. The whole purpose of it is to simply…

Lucreacia
- 79
- 1
- 8
-1
votes
1 answer
Java.lang.NullpointException error on Java Applet Initialization
I've done some searching on these types of errors and still can't quite figure out what I'm doing wrong. My Applet won't start/initialize. The applet window pops up and then says Start: applet not initialized at the bottom.
Here are the…

Erin
- 41
- 1
- 2
- 6
-1
votes
1 answer
Cannot implicitly convert java.lang.Class to c# object
I'm trying to invoke an old Java XML WS according to some documentation the provider gives. Here's the thing. At some point, I need to create a java service and call it's .getPort() function but it expects a java.lang.class object and I'm having an…

mrbitzilla
- 368
- 3
- 11
-1
votes
1 answer
Leetcode 34. Find First and Last Position of Element in Sorted Array with ArrayIndexOutOfBoundsException
class Solution {
public int[] searchRange(int[] nums, int target)
{
int first = firstIndex(nums, 0, nums.length, target);
int last = lastIndex(nums, 0, nums.length, target);
return new int[] {first, last};
}
public int firstIndex…

Naomi Wu
- 29
- 7
-1
votes
2 answers
Retrofit Error - java.lang.IllegalArgumentException
URL Link : http://www.factsplanet.info/cities.php
Method Retrofit
Error: java.lang.IllegalArgumentException
Main Class
public class MainActivity extends AppCompatActivity {
Retrofit retrofit;
Factory service;
@Override
protected…

Aryan Sharma
- 119
- 1
- 1
- 11
-1
votes
1 answer
What does "super(Car.class);" do in a constructor?
I am a beginner in java. Please explain me what does "super(Car.class);" do in a constructor?
public class CarDaoImpl extends AbstractDaoImpl implements CarDao {
public CarDaoImpl() {
super(Car.class);
}
}
-1
votes
2 answers
java.lang.NullPointerException - System.console()
I can't solve the problem two hours. Please help me.
My code:
package work.anart;
import java.io.Console;
public class Office {
public static void main(String[] args) {
Console cons = System.console();
…

Kas Elvirov
- 7,394
- 4
- 40
- 62