使用Logisim

本文指导用户解决在使用LogisimEvolution时遇到的Java版本不匹配错误,强调了确保Java版本高于16.0且使用提供的.jar文件,并介绍了基础元件操作,如加载测试向量进行本地测试和Lab5基础作业的步骤。
摘要由CSDN通过智能技术生成

1,首先确保版本匹配。以作业为例:

Logisim is a program with a GUI interface and please run it in your local environment. The local Python version should be greater than 3.6, and the Java version should be higher than 16.
Please use the .jar file we have provided (Version 3.8.0) to avoid compatibility issues. Windows, Ubuntu and macOS systems can all run it.

cmd进入终端:java -version。

可以尝试打开文件:

java -jar logisim-evolution.jar

不匹配报错如下:

PS D:\school\CA\lab5_starter\lab5_starter> java -jar logisim-evolution.jar Error: A JNI error has occurred, please check your installation and try again Exception in thread "main" java.lang.UnsupportedClassVersionError: com/cburch/logisim/Main has been compiled by a more recent version of the Java Runtime (class file version 60.0), this version of the Java Runtime only recognizes class file versions up to 52.0 at java.lang.ClassLoader.defineClass1(Native Method) at java.lang.ClassLoader.defineClass(Unknown Source) at java.security.SecureClassLoader.defineClass(Unknown Source) at java.net.URLClassLoader.defineClass(Unknown Source) at java.net.URLClassLoader.access$100(Unknown Source) at java.net.URLClassLoader$1.run(Unknown Source) at java.net.URLClassLoader$1.run(Unknown Source) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) at sun.launcher.LauncherHelper.checkAndLoadMain(Unknown Source)

前往:Java Archive | Oracle

2,在当前文件夹下输入java -jar logisim-evolution.jar 打开LOGISIM

3,

基础元件与操作

元器件基本信息:本地测试:Click Simulate -> Test Vector... and load vector selecting the testvector_ex1.txt file from the lab5_starter folder. 

基础作业:Lab 5 - Computer Architecture I - ShanghaiTech University

  • 35
    点赞
  • 30
    收藏
    觉得还不错? 一键收藏
  • 1
    评论
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值