Help with error when checking schema

9 views
Skip to first unread message

Wendy Lightheart

unread,
Jul 29, 2020, 6:04:13 PM7/29/20
to PreTeXt support
I'm getting an error when checking schema and it lists this information:

java -classpath ~/jing-trang/build -Dorg.apache.xerces.xni.parser.XMLParserConfiguration=org.apache.xerces.parsers.XIncludeParserConfiguration -jar ~/jing-trang/build/jing.jar /Users/lightheartw/mathbook/schema/pretext.rng /Users/lightheartw/orcca/src/orcca.ptx > /Users/lightheartw/orcca/output/jingreport.txt

Exception in thread "main" java.lang.UnsupportedClassVersionError: com/thaiopensource/relaxng/util/Driver : Unsupported major.minor version 51.0

at java.lang.ClassLoader.defineClass1(Native Method)

at java.lang.ClassLoader.defineClassCond(ClassLoader.java:637)

at java.lang.ClassLoader.defineClass(ClassLoader.java:621)

at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141)

at java.net.URLClassLoader.defineClass(URLClassLoader.java:283)

at java.net.URLClassLoader.access$000(URLClassLoader.java:58)

at java.net.URLClassLoader$1.run(URLClassLoader.java:197)

at java.security.AccessController.doPrivileged(Native Method)

at java.net.URLClassLoader.findClass(URLClassLoader.java:190)

at java.lang.ClassLoader.loadClass(ClassLoader.java:306)

at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)

at java.lang.ClassLoader.loadClass(ClassLoader.java:247)


Does any recognize what's wrong here and know how I might fix it?

Rob Beezer

unread,
Jul 29, 2020, 7:17:06 PM7/29/20
to pretext...@googlegroups.com
Dear Wendy,

I've not seen that one, but I think it means your Java is pretty old.

https://javarevisited.blogspot.com/2015/05/fixing-unsupported-majorminor-version.html

suggests the version 51 means your Java is "Java SE 7" (aka JDK 1.7, I think).

The naming conventions are very confusing, and I'd never seen these larger
numbers like you get.

https://en.wikipedia.org/wiki/Java_version_history

Can you update, or install, so you have a newer Java?

Rob
> --
> You received this message because you are subscribed to the Google Groups
> "PreTeXt support" group.
> To unsubscribe from this group and stop receiving emails from it, send an email
> to pretext-suppo...@googlegroups.com
> <mailto:pretext-suppo...@googlegroups.com>.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/pretext-support/fdc972b4-a48f-40ca-bc77-ed610b21d8a4n%40googlegroups.com
> <https://groups.google.com/d/msgid/pretext-support/fdc972b4-a48f-40ca-bc77-ed610b21d8a4n%40googlegroups.com?utm_medium=email&utm_source=footer>.

Wendy Lightheart

unread,
Jul 29, 2020, 7:48:34 PM7/29/20
to pretext...@googlegroups.com
I’m confused as to how that could be the case when it was working just fine yesterday.

Sent from my iPhone

> On Jul 29, 2020, at 4:17 PM, Rob Beezer <bee...@ups.edu> wrote:
>
> Dear Wendy,
> You received this message because you are subscribed to a topic in the Google Groups "PreTeXt support" group.
> To unsubscribe from this topic, visit https://groups.google.com/d/topic/pretext-support/fymzfFA8XtY/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to pretext-suppo...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/pretext-support/3998289b-ec0b-c7b5-2183-e0872bffc8c4%40ups.edu.

Rob Beezer

unread,
Jul 29, 2020, 8:05:54 PM7/29/20
to pretext...@googlegroups.com
Ooh, I thought you were starting from scratch. Yes, that is odd. Reboot? ;-)

I've not done anything substantial lately with the schema - June 13 looks like
the last change, and I'd not suspect that was the cause.

Alex Jordan

unread,
Jul 29, 2020, 8:29:42 PM7/29/20
to pretext...@googlegroups.com
I think I have a clue. When Wendy and I set things up, there was a period when
we were using the java that was already installed, and I'm sure that was put into
.bashrc or .profile or something like that. Later we discovered how we'd been using
the wrong java. I suspect we just set the path for that shell session but did not make
the edit in .bashrc.

Wendy, can you get the full path to where we put the newer version of java?
It will be something like
/Users/lightheartw/jdk.....

Then edit the file (I forget if it was .bashrc, .profile, .bash_profile,...) to use that path.
This file is hidden (the dot at the start of its name) so you can't see it in Mac OS
Finder. You can edit it using something from the command line, like:

vim .bashrc (or whatever the name is)

Once you enter vim, hit "i" to enter edit mode. Then make the edit. When done hit
ESC, then ":", then "x". Then exit the terminal, reenter, and see if things work.

To unsubscribe from this group and stop receiving emails from it, send an email to pretext-suppo...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/pretext-support/1f484f7d-6621-fc8c-943c-e7aa955cb73c%40ups.edu.

Wendy Lightheart

unread,
Jul 29, 2020, 10:50:27 PM7/29/20
to pretext...@googlegroups.com
Hi Alex,

The path is /Users/lightheartw/jdk-14.0.2.jdk. Once I get into the editing mode of vim .bashrc, how exactly do I do the edit?

Thanks,

Wendy

Alex Jordan

unread,
Jul 29, 2020, 11:34:48 PM7/29/20
to pretext...@googlegroups.com
Sorry, I tried to walk you through that in the last message. Probably there is
a more comfortable command line file editor, or there is some way to access
this file using SublimeText or something like that. If you want to try vim again,
then:

As soon as you enter vim, hit:
i
to enter editing mode. Type and use backspace as usual. When done, hit:
ESC
Then hit:
:
The colon brings you to the command line. Hit:
x
for save and exit, and then hit:
ENTER

Alex Jordan

unread,
Jul 29, 2020, 11:36:32 PM7/29/20
to pretext...@googlegroups.com

Alex Jordan

unread,
Jul 29, 2020, 11:53:20 PM7/29/20
to pretext...@googlegroups.com
Or try this. Rename the file so it is not hidden:
mv .bashrc bashrc

Then open it with your usual text editor, edit, and save.

Then rename it back:
mv bashrc .bashrc


Wendy Lightheart

unread,
Jul 30, 2020, 12:23:25 AM7/30/20
to pretext...@googlegroups.com
Hi Alex,

Okay, I've renamed the file and opened it up in Sublime Text, but what I don't understand is what to edit. The file is empty, so what exactly do I type to edit it? That's what I'm not getting. (Sorry to be so clueless.)

Wendy

Wendy

Alex Jordan

unread,
Jul 30, 2020, 12:47:08 AM7/30/20
to pretext...@googlegroups.com
The file is empty

Because you said this:

Once I get into the editing mode of vim .bashrc,

I thought you were confirming that .bashrc was the configuration file in question. But before,
I said this:

Then edit the file (I forget if it was .bashrc, .profile, .bash_profile,...)

I do not remember what the name of the particular config file was on your system. Use:
ls -a
to show you all of the files in that folder, including hidden ones, and see if one exists that is
the one you should edit.

Wendy Lightheart

unread,
Jul 30, 2020, 1:04:42 AM7/30/20
to pretext...@googlegroups.com
Hi Alex,

It looks like it must be .bashrc.swp? I've moved it and opened it. It consists of 8 columns of 4-digit (although some have letters too) numbers. Does this seem right? If so, how do I edit it? If not, the only other dot files listed are .DS_Store, .git, and .gitignore (none of which seem like the right one).

Wendy

Alex Jordan

unread,
Jul 30, 2020, 1:50:41 AM7/30/20
to pretext...@googlegroups.com
I'm helping Wendy off-list. And we already have a meeting scheduled for tomorrow afternoon in Zoom. So worst case we will sort it out then.

Reply all
Reply to author
Forward
0 new messages