
JAVA
UOS操作系统(龙芯版) jna调用问题
tangyuan 回复了问题 • 3 人关注 • 4 个回复 • 516 次浏览 • 2020-08-19 17:47
龙芯+中标麒麟高级服务器V4版和V6版的JNA,再哪儿可以下载,谢谢!
jiangtao9999 回复了问题 • 3 人关注 • 3 个回复 • 1359 次浏览 • 2018-11-17 00:31
hg.loongnix.org 的 java 针对性优化还是不够?
回复jiangtao9999 发起了问题 • 1 人关注 • 0 个回复 • 487 次浏览 • 2018-10-21 11:53
eclipse 有移植 mips64el 的版本参考吗?4.9 版的。
aoqi 回复了问题 • 2 人关注 • 1 个回复 • 753 次浏览 • 2018-10-15 21:50
openjdk 10/11 目前什么计划?
aoqi 回复了问题 • 2 人关注 • 1 个回复 • 1155 次浏览 • 2018-10-15 02:34
hg.loongnix.org 里面的 java ,怎么我运行直接报错?
shikongzhineng 回复了问题 • 3 人关注 • 2 个回复 • 726 次浏览 • 2018-09-07 17:56
高仿Swing QQ
rogertong 发表了文章 • 0 个评论 • 703 次浏览 • 2018-07-10 21:02
接力赛开始交棒了 赞
rogertong 发表了文章 • 2 个评论 • 865 次浏览 • 2018-07-09 20:23
Kotlin/Native支持MIPS
rogertong 发表了文章 • 0 个评论 • 838 次浏览 • 2018-06-07 12:39
Linux (x86_64, arm32, MIPS, MIPS little endian)
https://kotlinlang.org/docs/reference/native-overview.html
以下截图是kotlin/JVM
下载:
https://mirrors.aliyun.com/fedora/releases/22/Everything/source/SRPMS/m/marco-1.10.0-2.fc22.src.rpm
... 显示全部 »
下载:
https://mirrors.aliyun.com/fedora/releases/22/Everything/source/SRPMS/m/marco-1.10.0-2.fc22.src.rpm
编译: 测试:
重启机器,重新登录,再运行示例java程序,一切正常。
龙芯+中标麒麟高级服务器V4版和V6版的JNA,再哪儿可以下载,谢谢!
回复jiangtao9999 回复了问题 • 3 人关注 • 3 个回复 • 1359 次浏览 • 2018-11-17 00:31
hg.loongnix.org 的 java 针对性优化还是不够?
回复jiangtao9999 发起了问题 • 1 人关注 • 0 个回复 • 487 次浏览 • 2018-10-21 11:53
hg.loongnix.org 里面的 java ,怎么我运行直接报错?
回复shikongzhineng 回复了问题 • 3 人关注 • 2 个回复 • 726 次浏览 • 2018-09-07 17:56
为什么在openJDK的官网上只有port:mips,而没有port:loongson呢
回复aoqi 回复了问题 • 4 人关注 • 4 个回复 • 1659 次浏览 • 2018-03-12 14:24
高仿Swing QQ
rogertong 发表了文章 • 0 个评论 • 703 次浏览 • 2018-07-10 21:02
接力赛开始交棒了 赞
rogertong 发表了文章 • 2 个评论 • 865 次浏览 • 2018-07-09 20:23
Kotlin/Native支持MIPS
rogertong 发表了文章 • 0 个评论 • 838 次浏览 • 2018-06-07 12:39
Linux (x86_64, arm32, MIPS, MIPS little endian)
https://kotlinlang.org/docs/reference/native-overview.html
以下截图是kotlin/JVM
jquery ajaxSubmit实现文件上传
rogertong 发表了文章 • 1 个评论 • 859 次浏览 • 2018-05-17 08:43
<script src="js/jquery.form.js"></script>http://plugins.jquery.com/form/
http://malsup.github.io/jquery.form.js
function createDialog(o) {
var load = ;
load.push(
'<ul>'
+'<form enctype="multipart/form-data" method="post" id="fileForm" name="fileForm""><ul>'
+ '<li><label>所属法人机构 </label><span><input type="text" name="orgBlon" data-name="orgBlon" value="' + o.orgBlon + '" ' + o.disabled + '/></span></li>'
+ '<li><label>申请柜员号 </label><span><input type="text" name="appUser" data-name="appUser" value="' + o.appUser + '" ' + o.disabled + '/></span></li>'
+ '<li><label>实际申请人 </label><span><input type="text" name="operUser" data-name="operUser" value="' + o.operUser + '" ' + o.disabled + '/></span></li>'
+ '<li><label>申请编号 </label><span><input type="text" name="appId" data-name="appId" value="' + o.appId + '" ' + o.disabled + '/></span></li>'
+ '<li><label>用印识别码 </label><span><input type="text" name="verCod" data-name="verCod" value="' + o.verCod + '" ' + o.disabled + '/></span></li>'
+ '<li><label>标题 </label><span><input type="text" name="appTitle" data-name="appTitle" value="' + o.appTitle + '" ' + o.disabled + '/></span></li>'
+ '<li><label>印章类型id </label><span><input type="text" name="sealTypeid" data-name="sealTypeid" value="' + o.sealTypeid + '" ' + o.disabled + '/></span></li>'
+ '<li class="max"><label>文件上传</label><span><input type="file" name="myfiles" data-name="myfiles" value="' + o.myfiles + '" /></span></li>'
+ '<li><label>文件类型 </label><span><input type="text" name="fileType" data-name="fileType" value="' + o.fileType + '" ' + o.disabled + '/></span></li>'
+ '<li><label>电子文档格式 </label><span><input type="text" name="efileForm" data-name="efileForm" value="' + o.efileForm + '" ' + o.disabled + '/></span></li>'
+ '<li><label>文件名称 </label><span><input type="text" name="fileName" data-name="fileName" value="' + o.fileName + '" ' + o.disabled + '/></span></li>'
+ '<li><label>页数 </label><span><input type="text" name="pagNum" data-name="pagNum" value="' + o.pagNum + '" ' + o.disabled + '/></span></li>'
+ '<li><label>盖章页 </label><span><input type="text" name="sealPage" data-name="sealPage" value="' + o.sealPage + '" ' + o.disabled + '/></span></li>'
+ '<li><label>用章次数 </label><span><input type="text" name="useSealNum" data-name="useSealNum" value="' + o.useSealNum + '" ' + o.disabled + '/></span></li>'
+ '<li><label>摘要 </label><span><input type="text" name="appComment" data-name="appComment" value="' + o.appComment + '" ' + o.disabled + '/></span></li>'
+ '<li><label>凭证ID </label><span><input type="text" name="chnId" data-name="chnId" value="' + o.chnId + '" ' + o.disabled + '/></span></li>'
+ '<li><label>付款人账号 </label><span><input type="text" name="payAcc" data-name="payAcc" value="' + o.payAcc + '" ' + o.disabled + '/></span></li>'
+ '<li><label>凭证种类 </label><span><input type="text" name="chnTpye" data-name="chnTpye" value="' + o.chnTpye + '" ' + o.disabled + '/></span></li>'
+ '<li><label>凭证号 </label><span><input type="text" name="chnCode" data-name="chnCode" value="' + o.chnCode + '" ' + o.disabled + '/></span></li>'
+ '<li><label>金额 </label><span><input type="text" name="chnMoney" data-name="chnMoney" value="' + o.chnMoney + '" ' + o.disabled + '/></span></li>'
+ '<li><label>凭证种类 </label><span><input type="text" name="chnTpye" data-name="chnTpye" value="' + o.chnTpye + '" ' + o.disabled + '/></span></li>'
+ '<li><label>凭证日期</label><span><input type="text" name="chnDate" data-name="chnDate" value="' + o.chnDate + '" ' + o.disabled + '/></span></li>'
+ '<li class="sumbit"><button type="button" class="btn btn-warning">保存</button><button type="button" class="btn btn-reset close">取消</button></li>'
+ '</ul></form>'
);
$.tooltip({className: "sysUser", title: o.title, content: load.join('')});
var _obj = $(".sysUser"), _control = $(":input", _obj), _button = $("button:first", _obj);
// $.select(api.user.select, _control.eq(3),o.rolCode);
_button.on("click", function () {
var form = $("form[name=fileForm]");
var options = {
type:'post',
url:'http://localhost:8080/1/base/addBusSealInfo',
success:function(data){
alert('Success loading XML document');
},
error:function(data){
alert('Error loading XML document');
}
};
form.ajaxSubmit(options);
//$("#fileForm").submit();
});
}
@RequestMapping(value = "/addBusSealInfo", produces = "text/javascript;charset=utf-8", method = RequestMethod.POST)
@ResponseBody
@ResponseStatus(code=HttpStatus.OK,reason="success")
public Map<String, Object> addBusSealInfo(
BusSealInfoDto busSealInfoDto,@RequestParam("myfiles") MultipartFile files) throws Exception {
pSealBusInfoService.addBusSealInfo(busSealInfoDto,files);
Thread.currentThread().sleep(1000);//毫秒
HashMap<String, Object> map = new HashMap<String, Object>();
map.put(message, "");
return map;
}
form提交数据的同时还可以通过data传字符串数据
..........
$.tooltip({className: "sysUser", title: o.title, content: load.join('')});
var _obj = $(".sysUser"), _control = $(":input", _obj), _button = $("button:first", _obj);
// $.select(api.user.select, _control.eq(3),o.rolCode);
// 选择图片修改page信息,
$("body").on('change','#upImgs', function (e) {
upFile.mUpload(e,'#upimgs');
});
_button.on("click", function () {
var form = $("form[name=fileForm]");
var _parms = $.paramsCollection(_obj);
//图片页码信息
_parms.fileInfo = upFile.toSize('#upimgs');
console.log(_parms);
var options = {
type:'post',
url:'http://localhost:8080/1/base/addBusSealInfo',
data:{"a1":JSON.stringify(_parms)},
success:function(data){
$.tooltip({result: data.message, content: data.message});
viewDataTable();
// alert('Success loading XML document');
},
error:function(data){
alert('Error loading XML document');
}
};
form.ajaxSubmit(options);
//$("#fileForm").submit();
});
var upFile = {
mUpload: function(e,dm){
var m_file = e.target.files;
$(dm).find('.img-item').remove();
var li='';
for(var i=0;i<m_file.length;i++){
var z = m_file[i];
var reader = new FileReader();
reader.readAsDataURL(z);
// console.log(z.name);
reader.onloadend = (function(i){
return function(){
console.log();
console.log(i);
li = '<p class="img-item"><i>'+ i.name +'</i><em><input type="text" placeholder="">页</em></p>';
$(dm).append(li);
};
})(z);
};
},
toSize: function (e) {
var imgdata = ;
$(e+ ' .img-item').each(function () {
var _this = $(this);
var page = _this.find('input').val();
var name = _this.find('i').text();
imgdata.push({
'fileName': name,
'sealPage': page
});
});
return imgdata;
}
};[/i]
报告一个Java VM运行异常
rogertong 发表了文章 • 7 个评论 • 1128 次浏览 • 2018-05-04 12:13
Using CATALINA_BASE: /root/.IntelliJIdea2017.2/system/tomcat/Unnamed_pSeal
Using CATALINA_HOME: /usr/tomcat/apache-tomcat-7.0.81
Using CATALINA_TMPDIR: /usr/tomcat/apache-tomcat-7.0.81/temp
Using JRE_HOME: /usr/lib/jvm/java-1.8.0-openjdk
Using CLASSPATH: /usr/tomcat/apache-tomcat-7.0.81/bin/bootstrap.jar:/usr/tomcat/apache-tomcat-7.0.81/bin/tomcat-juli.jar
#
# A fatal error has been detected by the Java Runtime Environment:
#
# SIGSEGV (0xb) at pc=0x000000fff4004000, pid=4565, tid=1099316752880
#
# JRE version: OpenJDK Runtime Environment (8.0_60-b32) (build 1.8.0_60-rc27-b32)
# Java VM: OpenJDK 64-Bit Server VM (25.60-b24 mixed mode linux-mips64 compressed oops)
# Problematic frame:
# C 0x000000fff4004000
#
# Failed to write core dump. Core dumps have been disabled. To enable core dumping, try "ulimit -c unlimited" before starting Java again
#
# An error report file with more information is saved as:
# /usr/tomcat/apache-tomcat-7.0.81/bin/hs_err_pid4565.log
Could not load hsdis-mips64.so; library not loadable; PrintAssembly is disabled
Compiled method (c2) 306 2 java.lang.String::equals (81 bytes)
total in heap [0x000000000024a050,0x000000000024a938] = 2280
relocation [0x000000000024a170,0x000000000024a190] = 32
main code [0x000000000024a190,0x000000000024a720] = 1424
stub code [0x000000000024a720,0x000000000024a760] = 64
metadata [0x000000000024a760,0x000000000024a770] = 16
scopes data [0x000000000024a770,0x000000000024a860] = 240
scopes pcs [0x000000000024a860,0x000000000024a910] = 176
dependencies [0x000000000024a910,0x000000000024a918] = 8
nul chk table [0x000000000024a918,0x000000000024a938] = 32
Compiled method (c2) 306 2 java.lang.String::equals (81 bytes)
total in heap [0x000000000024a050,0x000000000024a938] = 2280
relocation [0x000000000024a170,0x000000000024a190] = 32
main code [0x000000000024a190,0x000000000024a720] = 1424
stub code [0x000000000024a720,0x000000000024a760] = 64
metadata [0x000000000024a760,0x000000000024a770] = 16
scopes data [0x000000000024a770,0x000000000024a860] = 240
scopes pcs [0x000000000024a860,0x000000000024a910] = 176
dependencies [0x000000000024a910,0x000000000024a918] = 8
nul chk table [0x000000000024a918,0x000000000024a938] = 32
#
# If you would like to submit a bug report, please visit:
# http://bugreport.java.com/bugreport/crash.jsp
#
Disconnected from server
IDEA Debug中
rogertong 发表了文章 • 0 个评论 • 645 次浏览 • 2018-04-28 13:43
设置MySQL最大连接数
rogertong 发表了文章 • 0 个评论 • 395 次浏览 • 2018-04-16 11:46
MySQL实现序列(Sequence)并在Mybatis里使用
rogertong 发表了文章 • 0 个评论 • 787 次浏览 • 2018-04-16 11:24