Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在尝试执行一个 pdf 文件,该文件包含在我的 jar 文件中。我尝试了这段代码,但它不起作用:
File afile =new File(strs+"o.jpg"); Desktop.getDesktop().open(afile);
strs 是 jar 文件的路径和其中的目录 strs="C:\Users\Buba\Documents\NetBeansProjects\done\dist\done.jar\done\images\"
我在这里做错了什么?
你必须:
我想使用以下方法将命令插入交互式环境:
bc <<END 1+1 quit END
该示例的输出是 ' 2',它在键入 后出现END。假设我想抑制这个输出。因此,在输入 END 后,我不希望出现任何输出。我怎么能做到这一点?
2
END