rs2xml.jar error not sure what it means

  • (2 Pages)
  • +
  • 1
  • 2

18 Replies - 1169 Views - Last Post: 11 August 2019 - 04:07 AM Rate Topic: -----

#1 dako   User is offline

  • D.I.C Head

Reputation: 0
  • View blog
  • Posts: 60
  • Joined: 01-July 19

rs2xml.jar error not sure what it means

Posted 18 July 2019 - 10:20 AM

Error occurred during initialization of boot layer
java.lang.module.FindException: Unable to derive module descriptor for C:\Users\dakot\Downloads\rs2xml.jar
Caused by: java.lang.module.InvalidModuleDescriptorException: JDOMAbout$Author.class found in top-level directory (unnamed package not allowed in module)

I downloaded a jar file to display my table and this is the code I used...

	 public void loadInventoryTable(JTable table) {
		 try {
			String query = "select * from sample";
			 PreparedStatement pst = conn.prepareStatement(query);
			 ResultSet rs = pst.executeQuery();
			 table.setModel(DbUtils.resultSetToTableModel(rs));
			 
		} catch (SQLException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
	 }
	 


It seems that I don't have access to the jar file though I built the path into my project.
Any suggestions?

Is This A Good Question/Topic? 0
  • +

Replies To: rs2xml.jar error not sure what it means

#2 wseng92   User is offline

  • D.I.C Addict
  • member icon

Reputation: 51
  • View blog
  • Posts: 694
  • Joined: 23-September 15

Re: rs2xml.jar error not sure what it means

Posted 18 July 2019 - 10:24 AM

Perhaps you haven't created a package?
Was This Post Helpful? 0
  • +
  • -

#3 dako   User is offline

  • D.I.C Head

Reputation: 0
  • View blog
  • Posts: 60
  • Joined: 01-July 19

Re: rs2xml.jar error not sure what it means

Posted 18 July 2019 - 10:25 AM

View Postwseng92, on 18 July 2019 - 10:24 AM, said:

Perhaps you haven't created a package?

How do I do this?
Was This Post Helpful? 0
  • +
  • -

#4 wseng92   User is offline

  • D.I.C Addict
  • member icon

Reputation: 51
  • View blog
  • Posts: 694
  • Joined: 23-September 15

Re: rs2xml.jar error not sure what it means

Posted 18 July 2019 - 10:27 AM

Have you read this?

https://stackoverflo...1325339/5156075
Was This Post Helpful? 0
  • +
  • -

#5 dako   User is offline

  • D.I.C Head

Reputation: 0
  • View blog
  • Posts: 60
  • Joined: 01-July 19

Re: rs2xml.jar error not sure what it means

Posted 18 July 2019 - 10:31 AM

View Postwseng92, on 18 July 2019 - 10:27 AM, said:


I just did and I still don't understand.

To clarify, I have multiple packages because I am doing multiple projects under the one project so eliminating all my packages doesn't seem like a good choice. I also don't think changing my module name would work as I chose to have no module because I don't even really know what they are for.

Do you know how I should go forward?
Was This Post Helpful? 0
  • +
  • -

#6 wseng92   User is offline

  • D.I.C Addict
  • member icon

Reputation: 51
  • View blog
  • Posts: 694
  • Joined: 23-September 15

Re: rs2xml.jar error not sure what it means

Posted 18 July 2019 - 10:38 AM

Quote

Do you know how I should go forward?

Sorry,not really. Let us wait for the expert here to help.

This post has been edited by wseng92: 18 July 2019 - 10:40 AM

Was This Post Helpful? 1
  • +
  • -

#7 dako   User is offline

  • D.I.C Head

Reputation: 0
  • View blog
  • Posts: 60
  • Joined: 01-July 19

Re: rs2xml.jar error not sure what it means

Posted 18 July 2019 - 10:56 AM

View Postwseng92, on 18 July 2019 - 10:38 AM, said:

Quote

Do you know how I should go forward?

Sorry,not really. Let us wait for the expert here to help.

I fixed it though I really don't understand why what I did worked...
Was This Post Helpful? 0
  • +
  • -

#8 wseng92   User is offline

  • D.I.C Addict
  • member icon

Reputation: 51
  • View blog
  • Posts: 694
  • Joined: 23-September 15

Re: rs2xml.jar error not sure what it means

Posted 18 July 2019 - 11:08 AM

Haha! Nice one,at least it fixed :rolleyes:

This post has been edited by wseng92: 18 July 2019 - 11:10 AM

Was This Post Helpful? 1
  • +
  • -

#9 g00se   User is offline

  • D.I.C Lover
  • member icon

Reputation: 3639
  • View blog
  • Posts: 16,727
  • Joined: 20-September 08

Re: rs2xml.jar error not sure what it means

Posted 18 July 2019 - 11:59 AM

I'm glad you mentioned this. I am the author of rs2xml.jar
Was This Post Helpful? 1
  • +
  • -

#10 dako   User is offline

  • D.I.C Head

Reputation: 0
  • View blog
  • Posts: 60
  • Joined: 01-July 19

Re: rs2xml.jar error not sure what it means

Posted 18 July 2019 - 11:39 PM

View Postg00se, on 18 July 2019 - 11:59 AM, said:

I'm glad you mentioned this. I am the author of rs2xml.jar

AWESOME! May I ask then when using the
table.setModel(DbUtils.resultSetToTableModel(ResultSet));

How can I make it so that the table isn't editable by the user? I think I could probably rig it up somehow but I'd rather figure it out the right way haha. And by the way, you've got a lot of shout outs and recommendations on youtube so congrats bro.
Was This Post Helpful? 0
  • +
  • -

#11 g00se   User is offline

  • D.I.C Lover
  • member icon

Reputation: 3639
  • View blog
  • Posts: 16,727
  • Joined: 20-September 08

Re: rs2xml.jar error not sure what it means

Posted 19 July 2019 - 02:02 AM

Thanks. From memory table.setEditable(false); should work fine
Was This Post Helpful? 1
  • +
  • -

#12 dako   User is offline

  • D.I.C Head

Reputation: 0
  • View blog
  • Posts: 60
  • Joined: 01-July 19

Re: rs2xml.jar error not sure what it means

Posted 19 July 2019 - 08:16 AM

View Postg00se, on 19 July 2019 - 02:02 AM, said:

Thanks. From memory table.setEditable(false); should work fine

Sick. Thanks g00se.
Was This Post Helpful? 0
  • +
  • -

#13 g00se   User is offline

  • D.I.C Lover
  • member icon

Reputation: 3639
  • View blog
  • Posts: 16,727
  • Joined: 20-September 08

Re: rs2xml.jar error not sure what it means

Posted 19 July 2019 - 10:59 AM

I've altered that jar now so with any luck that original error shouldn't happen now
Was This Post Helpful? 0
  • +
  • -

#14 dako   User is offline

  • D.I.C Head

Reputation: 0
  • View blog
  • Posts: 60
  • Joined: 01-July 19

Re: rs2xml.jar error not sure what it means

Posted 19 July 2019 - 10:14 PM

Sorry if this is a stupid question, but do I need to re download it or when you fix a jar library (it is considered a library right?) does it automatically update itself?
Was This Post Helpful? 0
  • +
  • -

#15 g00se   User is offline

  • D.I.C Lover
  • member icon

Reputation: 3639
  • View blog
  • Posts: 16,727
  • Joined: 20-September 08

Re: rs2xml.jar error not sure what it means

Posted 20 July 2019 - 02:36 AM

If you have it working then you should be OK. It wouldn't hurt though. And no, they're not self-updating. Yes it's a library
Was This Post Helpful? 0
  • +
  • -

  • (2 Pages)
  • +
  • 1
  • 2